Repository navigation
Dynamic Domains #4043
Replies: 1 comment
|
Interesting use case. MkDocs generates static HTML, so you can absolutely embed it into each Friendica node. The key is building the docs once and distributing the output. Here's how I'd approach this: 1. Build docs with relative links In your site_name: Friendica Docs
use_directory_urls: trueWhen you omit 2. Build and distribute the static output mkdocs buildThis produces a 3. Serve from each node at Since Friendica nodes presumably have a web server (Apache/nginx), just drop the built location /docs/ {
alias /path/to/friendica/docs/site/;
index index.html;
}For Apache: Alias /docs /path/to/friendica/docs/site
<Directory /path/to/friendica/docs/site>
Require all granted
</Directory>4. Handle the sitemap The one thing that does use absolute URLs is
5. Automate updates Include the built docs in your release artifacts, or have a CI job build them and commit the output to your repo. Each node pulls them on update. The static output approach is actually one of MkDocs' strengths here -- there's no server-side runtime needed, no database, just files. Each node serves its own copy without any central dependency. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm one of the maintainers of Friendica.
Currently, we don't host our documentation on a central domain. Instead, each Friendica node serves its own copy of the documentation under its own domain (e.g., /docs).
We'd like to switch to using MkDocs for our documentation, but we're not sure how to best integrate it with this setup.
All reactions