Project sites using MKDocs

MKDocs is a static site generator designed for creating project documentation. However, at least one ASF project uses it to build their entire project website.

As of August 2021, you need to use a special MKDocs build command sequence so it can handle the project site's .asf.yaml file, which must be in the root of the site.

The command mkdocs gh-deploy removes the site, rebuilds it, and then deploys the updated contents to the given remote branch. This removes, but does not replace, the .asf.yaml file.

To prevent the new build from removing the .asf.yaml file, use this build command sequence:

rm -r site
mkdir site
cp ../.asf.yaml site/
mkdocs gh-deploy --dirty

Copyright 2024, The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
Apache® and the Apache feather logo are trademarks of The Apache Software Foundation...