-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from usnistgov/docs
Zenodo Upload and Mkdocs
- Loading branch information
Showing
27 changed files
with
81,524 additions
and
915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: . | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v20 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
name: pfhub | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
extraPullNames: nix-community | ||
- run: echo "UID=${UID}" >> $GITHUB_ENV | ||
- uses: actions/cache/restore@v3 | ||
with: | ||
path: /run/user/${{ env.UID }}/http_cache.sqlite | ||
key: ${{ runner.os}}-http_cache.sqlite | ||
- run: nix develop --command bash -c "mkdocs gh-deploy --clean --verbose --remote-branch nist-pages" | ||
- uses: actions/cache/save@v3 | ||
if: always() | ||
with: | ||
path: /run/user/${{ env.UID }}/http_cache.sqlite | ||
key: ${{ runner.os }}-http_cache.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.~* | ||
.coverage | ||
dist | ||
site | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--8<-- "DEVELOPMENT.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--8<-- "LICENSE.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# API | ||
|
||
|
||
::: pfhub.main | ||
options: | ||
members: | ||
- efficiency_plot | ||
- levelset_plot | ||
show_root_heading: true | ||
show_source: true | ||
|
||
::: pfhub.scripts.cli | ||
options: | ||
members: | ||
- download_zenodo | ||
show_root_heading: true | ||
show_source: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.highlight.language-python { | ||
color: #3E4349; | ||
font-size: 16px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--8<-- "README.md" | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
site_name: PFHub CLI | ||
site_url: https://example.com/ | ||
repo_url: https://github.com/usnistgov/pfhub-cli | ||
|
||
theme: | ||
name: material | ||
palette: | ||
|
||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to light mode | ||
|
||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
|
||
nav: | ||
- Home: index.md | ||
# - Tutorial: tutorial.md | ||
- "How-to Guide": | ||
- "Test Notebook include": notebooks/test | ||
# - "Upload Data to Zenodo": upload-zenodo.md | ||
# - "Submit a Benchmark Result": test | ||
# - "Generate Data": generate.md | ||
# - "Generate a pfhub.yaml": pfhub-yaml.md | ||
# - Background: background.md | ||
- API: api.md | ||
- Development: DEVELOPMENT.md | ||
|
||
markdown_extensions: | ||
- pymdownx.snippets: | ||
check_paths: true | ||
- toc: | ||
permalink: "¶" | ||
|
||
plugins: | ||
- mkdocs-jupyter: | ||
execute: true | ||
allow_errors: false | ||
include_requirejs: true | ||
ignore: [".ipynb_checkpoints/*.ipynb"] | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
options: | ||
docstring_style: google | ||
docstring_section_style: list | ||
# heading_level: 1 | ||
inherited_members: true | ||
merge_init_into_class: true | ||
separate_signature: true | ||
show_root_heading: true | ||
show_root_full_path: false | ||
show_signature_annotations: true | ||
show_symbol_type_heading: true | ||
show_symbol_type_toc: true | ||
signature_crossrefs: true | ||
summary: true | ||
parameter_headings: true | ||
|
||
extra_css: | ||
- extra.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.