Skip to content
Jupiter documentation
Menu

Add a project

Put a project's documentation on this site while its pages stay in the project's own repository.

A Project writes its pages in its own repository. This repository holds no copy of them: jupiter-docs import fetches the pages before every build, and the site, the PDF and llms.txt are generated from what it fetched.

Register a project#

A public repository of belikh registers itself. Commit these two things to its default branch:

jupiter-docs init creates both. The next build of this site finds the repository through discover in docs.config.json here and adds the project. The site builds once a day, on every push to this repository and on request.

A repository of another owner, or one that should use a fixed branch or another id, gets one line in sources:

Private repositories, forks and archived repositories are not discovered.

What the project's config holds#

project and description become the title and the summary of the project's card on the home page. icon is the icon on that card. id is the first part of the project's addresses; choose it once, because addresses are permanent. The glossary belongs to the project: [[term:Host]] on one of its pages links to the project's own glossary page.

Sections#

A folder in docs-src is a section. These five folder names have a fixed title, summary and icon, and appear in this order in every project, so a reader finds the same things in the same place:

Any other folder becomes a section named after the folder. A project that needs its own titles or order lists sections in its docs.config.json; declared sections come first.

Several PDFs#

A project has one PDF that holds every section. A project that needs separate ones, such as a user guide, an installation guide and a developer reference, lists documents in its docs.config.json:

The project's landing page has one download button per document. The PDF link at the top of a page opens the document that holds the page's section. The project's index.md opens every document. A link to a page of another document is plain text in the PDF, because that page is not in the file.

jupiter-docs check reports a document that names an unknown section as an error. It warns about a section that is in no document, because its pages are then in no PDF.

A page is published at /<project id>/<path of the file>/, so docs-src/guides/backup.md of aquila is at /aquila/guides/backup/. The project's index.md is its landing page at /aquila/.

[[guides/backup]] on a page of the project names a page of the same project. To link to another project, start with its id: [[design/consuming]], or [[design]] for its landing page. Relative links to files that are not pages, and images, point at the project's repository at the imported ref.

When a project has errors#

Run jupiter-docs check in the project before a release. If a released project still fails the check here, the site is built without it and the build log has a warning with every error. Errors in the pages of this repository stop the build.

Wording is treated differently. A voice finding in a project's page is an error in the project's own check and a warning here. The page stays on the site, and the build log names the sentence to fix (see Voice).

When a page moves#

Addresses are permanent once published. When a file is renamed or a project changes its id, add the old address to redirects in docs.config.json of this repository. The site keeps a small page there that sends the reader to the new one:

Rebuild after a release#

The daily build picks up a new release. To publish sooner, send a repository_dispatch event of type docs-changed from the project's release workflow:

The call needs a token that can write to belikh/docs.

Projects without a docs-src folder#

Hand-written Markdown files of a repository can be listed one by one. The entry then carries what the project's config would hold:

The import removes each file's first # title and a leading comment, and turns links between the listed files into page links.

Edit this page on the source repository