Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

* Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476)
* Added Python 3.12 support [#356](https://github.com/NLeSC/python-template/issues/356)
* Template unit tests for documentation generation, linting and version bumping
* Docstring for function
Expand Down
6 changes: 6 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ AddGitHubActions:
default: "{{ template_profile != 'minimum' }}"
help: GitHub actions to test the package and the documentation

AddOnlineDocumentation:
when: "{{ template_profile == 'ask' }}"
type: bool
default: "{{ template_profile != 'minimum' }}"
help: Online documentation using Read the Docs


# internal fields
_subdirectory: template
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push]
permissions:
contents: write
issues: write
name: Create issues for next steps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both next_steps*.yml workflows have same name. Please make unique

Suggested change
name: Create issues for next steps
name: Create readthedocs issue for next steps

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already done

jobs:
next_steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create readthedocs issue
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/next_steps/03_readthedocs.md
id: readthedocs
- name: List created issues
run: |
echo 'Created issues that must be completed to have fully working Python package:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing ' at the end of the line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

* Read the Docs instructions ${{ steps.readthedocs.outputs.url }}'
- name: Cleanup files needed to create next steps issues
run: |
git config --global user.name 'NLeSC Python template'
git config --global user.email '[email protected]'
git rm .github/workflows/next_steps_online_documentation.yml
git rm -r .github/next_steps
git commit -am "Cleanup automated next steps issue generator"
git push