-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include inter-class and inter-collection relationship graphs in schema documentation #2198
Changes from 15 commits
3d4820b
9852362
5ecdcd5
ea3794b
27754b1
9c22098
aa4843c
80d509d
d8ed9b3
4e753b9
9b750e1
8915b2b
53a7875
168a3cc
4da13d4
472270e
8acd4c3
904ff38
9911c4c
e5943a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,34 @@ jobs: | |
- name: Install dependencies | ||
run: poetry install -E docs | ||
|
||
- name: Build documentation | ||
- name: Derive files from sources | ||
# Note: First, we replace the "0.0.0" placeholder version number in `pyproject.toml`. | ||
# Reference: https://github.com/mtkennerly/poetry-dynamic-versioning/blob/master/README.md#command-line-mode | ||
run: | | ||
mkdir -p site | ||
touch site/.nojekyll | ||
poetry self add "poetry-dynamic-versioning[plugin]" | ||
poetry dynamic-versioning | ||
make squeaky-clean all | ||
|
||
- name: Generate web-based documentation | ||
run: | | ||
mkdir -p docs | ||
touch docs/.nojekyll | ||
make gendoc | ||
poetry run mkdocs build -d site | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that this command is present in this |
||
|
||
- name: Generate reference graphs | ||
# Use `refgraph` (part of `refscan`) to generate graphs (i.e. network diagrams) | ||
# depicting the relationships between collections and between classes. | ||
# | ||
# Note: We generate the graphs (i.e. the HTML files) within the directory that | ||
# will eventually be deployed to GitHub Pages. | ||
# | ||
# Reference: https://github.com/microbiomedata/refscan | ||
# | ||
run: | | ||
pipx run --spec 'refscan==0.1.20' refgraph --schema nmdc_schema/nmdc_materialized_patterns.yaml --subject collection --graph site/collection-graph.html | ||
pipx run --spec 'refscan==0.1.20' refgraph --schema nmdc_schema/nmdc_materialized_patterns.yaml --subject class --graph site/class-graph.html | ||
|
||
- name: Deploy preview | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ extra_javascript: | |
- https://unpkg.com/[email protected]/dist/tablesort.min.js | ||
- javascripts/tablesort.js | ||
nav: | ||
# Reference: https://www.mkdocs.org/user-guide/configuration/#nav | ||
- NMDC Schema: index.md | ||
- About: about.md | ||
- How to run a collaborative data modeling project: https://linkml.io/linkml/howtos/collaborative-development.html | ||
|
@@ -30,6 +31,8 @@ nav: | |
- NMDC Schema Contributors How-to from Schema Hackathon 2023-12-10: https://docs.google.com/presentation/d/1ZH41QAoESUwAkdHyUxlrmSKS5M-bT0TOulBgX4rBx2A/edit#slide=id.g26390794265_0_693 | ||
- NMDC Schema Validation: schema-validation.md | ||
- Schema element deprecation guide: schema_element_deprecation_guide.md | ||
- Class graph: class-graph.html | ||
- Collection graph: collection-graph.html | ||
|
||
|
||
site_url: https://microbiomedata.github.io/nmdc-schema | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: These 3 lines were moved to an earlier step (i.e. to lines 36-38) so that a documentation website file tree exists by the time we try to inject the graphs into it (i.e. on lines 50-51).