-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(project-docs): set up mkdocs, github actions and doc rendering
- Loading branch information
1 parent
ecadee6
commit e2412c7
Showing
32 changed files
with
477 additions
and
855 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Publish documentation | ||
|
||
on: | ||
workflow_dispatch: # Allow manual triggers | ||
push: | ||
tags-ignore: | ||
- '**' # Ignore any tags here | ||
branches: | ||
- master | ||
# | ||
# Trigger when either files in the docs folder, | ||
# the requirements.txt file or the mkdocs.yml file | ||
# are edited and commited. | ||
paths: | ||
- 'docs/**' | ||
- 'requirements.txt' | ||
- 'mkdocs.yml' | ||
|
||
# These permissions are required for it to work | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Makes sure only one workflow runs at a time. | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
buildAndDeploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.pages_url }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python_version: '3.x' # Uses latest 3.x version. | ||
- name: Install dependencies | ||
# Alternatively: pip install mkdocs | ||
run: pip install mkdocs mkdocs-material | ||
- name: Build Docs | ||
run: mkdocs build | ||
- name: Configure GitHub Pages | ||
# I have no idea if this actually needed... | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'site/' # MkDocs builds to site/ by default | ||
- name: Deploy to GitHub Pages | ||
id: deployment # This is required for environment | ||
uses: actions/deploy-pages@v2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 @@ | ||
# Developer Contribution Guide | ||
|
||
Use commitizen for commit messages: | ||
https://commitizen.github.io/cz-cli/ | ||
|
||
Use Conventional Commits for commit messages: | ||
https://www.conventionalcommits.org/en/v1.0.0/ | ||
|
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...mmary/pathfinder_framework.carbon_footprint.biogenic_accounting_methodology.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
..._autosummary/pathfinder_framework.carbon_footprint.characterization_factors.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
.../_autosummary/pathfinder_framework.carbon_footprint.cross_sectoral_standard.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
docs/source/_autosummary/pathfinder_framework.carbon_footprint.declared_unit.rst
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...ource/_autosummary/pathfinder_framework.carbon_footprint.geographical_scope.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...hfinder_framework.carbon_footprint.product_or_sector_specific_rule_operator.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...urce/_autosummary/pathfinder_framework.carbon_footprint.region_or_subregion.rst
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.