The source for https://docs.p2poolv2.org. Jekyll with the Just the Docs theme, pages in AsciiDoc via jekyll-asciidoc, diagrams in PlantUML via asciidoctor-diagram.
This documentation project is a work-in-progress and the rendered site is not published yet. For convenience, we provide direct Asciidoc links to a few notable, in-progress pages.
-
P2Poolv2 Documentation (docs home page)
_config.yml site, theme and Asciidoctor settings architecture/ sections (sample content for now) _snippets/ files pulled into pages with include:: _plantuml/p2poolv2.config brand skin applied to every PlantUML diagram _sass/custom/setup.scss the brand palette and fonts _sass/color_schemes/p2poolv2.scss Just the Docs colour scheme and code colours _sass/custom/custom.scss brand overrides and styles for AsciiDoc blocks _includes/head_custom.html favicon and self-hosted fonts assets/images/ logo and favicon, from ../website/assets assets/fonts/, assets/css/fonts.css Inter and JetBrains Mono, from ../website .github/workflows/pages.yml build and deploy to GitHub Pages CNAME docs.p2poolv2.org
Needs Ruby (see .ruby-version), Bundler, and a Java runtime for
PlantUML. Graphviz (dot) is needed for class, component and activity
diagrams. The PlantUML jar itself comes from the
asciidoctor-diagram-plantuml gem.
bundle install bundle exec jekyll serve --livereloadshare
Then open http://localhost:4000. If a diagram does not update, run
bundle exec jekyll clean and remove .asciidoctor/.
See Writing documentation. In short: a
.adoc file with = Title and :page-nav_order:, :page-parent:
and :page-has_children: attributes for the sidebar, and
[plantuml, name, svg] blocks for diagrams.
Colours, logo, favicon and fonts match the landing page in ../website,
which takes them from ../logos/p2poolv2-brand-pack. The four brand
colours (Bitcoin Orange #F7931A, Black #0B0B0C, Near Black
#121212, White) are the only colours on the site, including in code
highlighting and diagrams. They are defined once in
_sass/custom/setup.scss (and, for diagrams, in
_plantuml/p2poolv2.config); any shade is one of them at reduced
opacity. White on orange fails contrast, so anything on a filled orange
surface is black. The site loads nothing from a third party: fonts are
self-hosted.