Skip to content
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

Automate GH Pages build #28

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
444927f
Scaffold for automating GH Pages build
CasperWA Apr 23, 2021
9843053
Update versions
CasperWA Aug 18, 2021
25a9bac
Run pre-commit
CasperWA Aug 18, 2021
5eb2920
Update .gitignore
CasperWA Dec 3, 2021
02f0b71
Use SINTEF/ci-cd for workflows
CasperWA Jul 19, 2022
7df2998
Minor fix to workflow value
CasperWA Jul 19, 2022
b3e5a40
Update pre-commit hooks, add isort
CasperWA Jul 19, 2022
6815d16
Running isort and updating with black max line len
CasperWA Jul 19, 2022
649d226
Update pylint disable statements in codebase
CasperWA Jul 19, 2022
0d274d4
Fix typo
CasperWA Jul 19, 2022
4939fd0
Add `Word` to DDL and create full cif-core ontology
CasperWA Jul 21, 2022
beaa794
Remove auto-generated catalog file
CasperWA Jul 21, 2022
5c98deb
Fallback to online DDL ontology
CasperWA Jul 21, 2022
589a5b4
Add new MkDocs framework documentation
CasperWA Jul 21, 2022
e403a5a
Add documentation landing page
CasperWA Jul 21, 2022
cba0d38
Update documentation with proper links
CasperWA Jul 21, 2022
fcdbb96
Beginning version release overview docs page
CasperWA Jul 21, 2022
9cb4e3b
Create _utils.py to hold utility elements
CasperWA Jul 22, 2022
02944b3
Don't add private module to API docs
CasperWA Jul 22, 2022
f01a711
Implement auto-generation when building docs
CasperWA Jul 22, 2022
3bb1554
Remove ignoring NumPy safety issues
CasperWA Aug 19, 2022
b71bb0a
Fix tests according to updated Generator
CasperWA Aug 19, 2022
9301442
Revert "Remove ignoring NumPy safety issues"
CasperWA Aug 19, 2022
a6aee95
Fix API reference documentation
CasperWA Aug 23, 2022
1fced73
Build docs and dic2owl package in CI
CasperWA Aug 23, 2022
06c6b4b
Install the `build` package in CI
CasperWA Aug 23, 2022
b87b7f8
Ensure dependencies are installed for CI
CasperWA Aug 23, 2022
74c6e15
Fix installing dependencies
CasperWA Aug 23, 2022
42cd2c3
Set `create_dirs` configuration to True
CasperWA Aug 23, 2022
e8aa27f
Only create publish_dir in MkDocs plugin
CasperWA Aug 23, 2022
26a742d
Don't try to set `root_dir` in plugin
CasperWA Aug 23, 2022
2a0a0d4
Attempt at fixing plugin
CasperWA Aug 23, 2022
af3ed16
Update ci/cd hook and use `relative` option
CasperWA Aug 24, 2022
8cf4526
Fix API reference documentation
CasperWA Aug 24, 2022
0f666f8
Merge remote-tracking branch 'origin/main' into automate_gh-pages
CasperWA Feb 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix API reference documentation
  • Loading branch information
CasperWA committed Aug 23, 2022
commit a6aee95e8c9fd4ea4640f6ffbc120713a96ffa6b
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -50,14 +50,15 @@ repos:
args: [--config-file, dic2owl/pyproject.toml]

- repo: https://github.com/SINTEF/ci-cd
rev: e46548040dd6afa0b8204151d7ed988d96252a4b # frozen: v1
rev: ee61761e58ffe011b8161a9b5de670fa6999a976 # frozen: v1
hooks:
- id: docs-api-reference
args:
- --package-dir=dic2owl/dic2owl
- --unwanted-file=__init__.py
- --unwanted-file=_utils.py
- --unwanted-folder=_mkdocs
- --unwanted-folder=__pycache__
- id: docs-landing-page
args:
- --replacement=(LICENSE),(LICENSE.md)
2 changes: 1 addition & 1 deletion dic2owl/dic2owl/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
# `dic2owl` CLI
# dic2owl CLI

The `dic2owl` command line interface (CLI) is an easy way of running the
ontology-generation tool for CIF `.dic`-files.
2 changes: 1 addition & 1 deletion docs/api_reference/cli.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# cli

::: dic2owl.cli
::: dic2owl.dic2owl.cli
2 changes: 1 addition & 1 deletion docs/api_reference/dic2owl.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# dic2owl

::: dic2owl.dic2owl
::: dic2owl.dic2owl.dic2owl
3 changes: 0 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -88,6 +88,3 @@ nav:
- Overview: dic2owl/index.md
- License: LICENSE.md
- ... | api_reference/**

watch:
- "dic2owl"