For information about the base system see https://mkdocs.org
This theme uses Bulma and provides basic styling for our projects.
Example websites:
Usage requires mkdocs (python) and zsh: apt install zsh mkdocs
.
Step by step notes on basic usage scenarios follow: initialize, update and deploy.
-
make a
website
directory in your project and enter it -
clone this repo
git clone https://github.com/dyne/mkdocs-dyne-theme
-
run
./mkdocs-dyne-theme/.init
(please note the dot! .init) -
edit the configuration file
mkdocs.yml
with the right project settings -
edit the contents in
docs/README.md
-
link the README in the project's root, i.e:
ln -s website/docs/README.md .
-
commit and push the changes to your project
Run ./mkdocs-dyne-theme/.preview
and open http://localhost:8000
Run ./mkdocs-dyne-theme/.deploy
(please note the dot! .deploy) to create a branch gh-pages
and upload the page.
Go to https://dyne.github.io/project-name to see it.
Contact a sysadmin to setup project-name.dyne.org, then place the domain name inside website/docs/CNAME
i.e: echo project-name.dyne.org > website/docs/CNAME
.
Commit and push the new CNAME file to your project.
Run ./mkdocs-dyne-theme/.update
(please note the dot! .update) to actualize the theme to its latest version.
Commit and push the changes to your project.
Keep in mind that this theme is not a submodule of your project, it is copied inside it.
Example configuration:
site_name: RedRoom
site_url: https://decodeproject.github.io/RedRoom
repo_url: https://github.com/decodeproject/redroom
site_author: Jaromil
site_description: RedRoom is powered by the Zenroom crypto VM to bring easy to use yet advanced cryptographic functionalities for Redis.
copyright: Copyright (C) 2019 by the <a href="https://dyne.org">Dyne.org foundation</a>. The source code is licensed <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPLv3</a>.
extra:
basename: redroom
links:
releases: https://files.dyne.org/redroom
docker: https://hub.docker.com/r/dyne/redroom
quickstart: https://github.com/decodeproject/redroom/wiki
forum: https://lists.dyne.org
drift_handle: s64nd7w43g53
nav:
subtitle: Redis powered by Zenroom
logo: null # /img/redroom-trans.png
og_image_large: /img/redroom-trans.png
plugins: []
extra_css:
- //fonts.googleapis.com/css?family=Montserrat&display=swap
- css/custom.css
markdown_extensions:
- admonition
- codehilite
theme:
name: null
custom_dir: 'mkdocs-dyne-theme/'
This plugin is licensed AGPLv3.
It is maintained by Jaromil and Puria