Skip to content

Commit

Permalink
Add a diagram for parts.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed Apr 28, 2023
1 parent 80dc1cc commit 95d83d6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_autodoc_typehints", # must be loaded after napoleon
"sphinx-mermaid",
"sphinx-pydantic",
"sphinx_design",
"sphinxcontrib.details.directive",
Expand Down
25 changes: 25 additions & 0 deletions docs/explanation/parts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,31 @@ describe a build process typically accept specifications of parts in YAML format
mostly-declarative format. Libraries that use parts may use the underlying
data structures to describe them.

.. mermaid ::
graph LR
project
cache
style cache stroke-dasharray: 5 5
subgraph parts["part(s)"]
src
build
install
end
stage
prime
project -->|pull| cache
cache -->|overlay| src
src -->|build| build
build -->|organize| install
install -->|stage| stage
stage -->|prime| prime
Describing a part
-----------------

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Sphinx==5.3.0
sphinx-autobuild==2021.3.14
sphinx-autodoc-typehints==1.20.0
sphinx-jsonschema==1.19.1
sphinx-mermaid==0.0.8
sphinx-pydantic==0.1.1
sphinxcontrib-applehelp==1.0.2
sphinx_design==0.3.0
Expand Down

0 comments on commit 95d83d6

Please sign in to comment.