Class PublishDocs
java.lang.Object
ai.redouble.docs.PublishDocs
Puts the generated site into a checkout of the documentation repository as one version
of the published documentation. The repository holds every published version, already
generated, one directory each under
site/nucleo; what it holds is what the
documentation host serves. Publishing a version that is not there adds it; publishing
one that is there replaces its directory whole, so no page of the earlier publication
survives. Then what depends on the set of versions is written again from the
directories themselves: site/nucleo/versions.json, the versions newest first,
which every page's version badge reads; site/_redirects, which sends the
address without a version to the newest one; and site/robots.txt, which has
search engines index the newest version alone. The page the host shows for an address
that leads nowhere, site/404.html, is written with them, and the repository's
own LICENSE and NOTICE are taken from the newest version.
Nothing here commits or pushes. The checkout is left changed for a person to review,
commit and push, and the push is the publication.- Since:
- 0.1 (2026-10-01)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidArguments: the directory of the generated site, the checkout of the documentation repository, the version.static voidPublishes the site undersiteasversioninto the checkout atrepository.
-
Constructor Details
-
PublishDocs
public PublishDocs()
-
-
Method Details
-
main
Arguments: the directory of the generated site, the checkout of the documentation repository, the version.- Throws:
IOException
-
publish
Publishes the site undersiteasversioninto the checkout atrepository.- Throws:
IOException
-