Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.74 KB

CONTRIBUTING.md

File metadata and controls

22 lines (15 loc) · 1.74 KB

Contributing

How docs.ruby-lang.org/en Works

Overview

The English Ruby documentation is automatically generated and updated through a pipeline involving GitHub Actions, AWS S3, and systemd services. Here's how it all comes together:

  1. Documentation Generation and Upload

    • A scheduled GitHub Action generates the documentation for all actively maintained Ruby versions plus the master branch. Each documentation set is generated using the version of RDoc bundled with that specific Ruby version.
      • Example: For Ruby 3.3, the documentation is generated with RDoc 6.6.3.1.
    • The generated docs are uploaded as ruby-docs-en-<version>.tar.xz to the ftp.r-l.o/pub/ruby/doc/ S3 bucket.
  2. Website Update

    • On the server running this application, the update-docs-en.timer systemd timer triggers the rdoc-static-all service at scheduled intervals.
    • The rdoc-static-all service runs the rdoc-static-all script.
      • This script downloads the latest documentation from S3 and updates the website accordingly.