Skip to content

Fix release notes + version in docs #742

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 6 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'
- uses: jmduarte/sphinx-action@main
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
pre-build-command: "git config --system --add safe.directory '*'"
docs-folder: "docs/"
- name: Commit Documentation Changes
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'
- uses: jmduarte/sphinx-action@main
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
pre-build-command: "git config --system --add safe.directory '*'"
docs-folder: "docs/"
- uses: actions/upload-artifact@v3
with:
path: docs/_build/html
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ def get_pypi_version(package, url_pattern=URL_PATTERN):
'sphinx_github_changelog',
]

# Note: to build locally, you will need to set the ACTIONS_RUNTIME_TOKEN
# Note: to build locally, you will need to set the SPHINX_GITHUB_CHANGELOG_TOKEN
# environment variable to a personal access token with repo scope
sphinx_github_changelog_token = os.environ["ACTIONS_RUNTIME_TOKEN"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -117,3 +116,11 @@ def get_pypi_version(package, url_pattern=URL_PATTERN):
'includehidden': True,
'titles_only': False,
}

html_context = {
'display_github': True, # Integrate GitHub
'github_user': 'fastmachinelearning', # Username
'github_repo': "hls4ml", # Repo name
'github_version': 'main', # Version
'conf_py_path': '/docs/', # Path in the checkout to the docs root
}