-
Notifications
You must be signed in to change notification settings - Fork 10
Make mkdocs documentation for powerfit #102
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9639324
setup for mkdocs
AnnaEngel98 e88ea17
added to dependencies and github pages deployment
AnnaEngel98 b157afa
updated pages.yml to do pip install
AnnaEngel98 04da61f
updated pages.yml
AnnaEngel98 0ea118f
removed bloat from README.md
AnnaEngel98 71fabca
moved installation instructions from README.md to installation.md
AnnaEngel98 8dfd61e
added contribution guidelines
AnnaEngel98 4ce1cf7
Description parameters and report pages
AnnaEngel98 ab3af5e
typos in manual
AnnaEngel98 7452472
removed autoapi
AnnaEngel98 1d72a75
Handled reviewer comments
AnnaEngel98 658c84e
ruff format and lint fix
AnnaEngel98 33a9612
typos
AnnaEngel98 bf998b2
Update image link
AnnaEngel98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,70 @@ | ||
| name: Deploy MkDocs to GitHub Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| # Only have one deployment in progress at a time | ||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: install system dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y openmpi-bin libopenmpi3 libopenmpi-dev | ||
|
|
||
| - name: install powerfit with extra dependencies | ||
| run: pip install '.[docs]' | ||
|
|
||
| - name: Build MkDocs site | ||
| run: | | ||
| mkdocs build | ||
| env: | ||
| # Force colored output from rich library | ||
| TTY_COMPATIBLE: "1" | ||
| TTY_INTERACTIVE: "0" | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: site | ||
|
|
||
| deploy: | ||
| # Add a dependency to the build job | ||
| needs: build | ||
|
|
||
| # Only deploy on pushes to main or manual trigger of main branch | ||
| if: github.ref == 'refs/heads/main' | ||
|
|
||
| # Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
| permissions: | ||
| pages: write # to deploy to Pages | ||
| id-token: write # to verify the deployment originates from an appropriate source | ||
|
|
||
| # Deploy to the github-pages environment | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
|
|
||
| # Specify runner + deployment step | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.