Skip to content
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
21 changes: 21 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,24 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/
publish_branch: streamlit-report-example

changelog:
name: Update changelog
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: main

- name: Update CHANGELOG.md
uses: rhysd/changelog-from-release/action@v3
with:
file: CHANGELOG.md
github_token: ${{ secrets.GITHUB_TOKEN }}
header: |
# Release Notes

All notable changes to this project are documented in this file. It was automatically generated with
the [changelog-from-release](https://github.com/rhysd/changelog-from-release) tool.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Release Notes

All notable changes to this project are documented in this file. It was automatically generated with
the [changelog-from-release](https://github.com/rhysd/changelog-from-release) tool.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,14 @@ Full details for both licenses can be found in the [LICENSE][vuegen-license] fil

## Contributing

VueGen is an open-source project, and we welcome contributions of all kinds via GitHub issues and pull requests. You can report bugs, suggest improvements, propose new features, or implement changes. Please follow the guidelines in the [CONTRIBUTING](CONTRIBUTING.md) file to ensure that your contribution is easily integrated into the project.
VueGen is an open-source project, and we welcome contributions of all kinds via GitHub issues and pull requests.
You can report bugs, suggest improvements, propose new features, or implement changes.

We follow the [Conventional Commits][conventional-commits] specification for commit messages and use the
[changelog-from-release][changelog-from-release-repo] tool to automatically generate the [CHANGELOG](CHANGELOG.md).

Please follow the guidelines in the [CONTRIBUTING](CONTRIBUTING.md) file to ensure that your contribution is
easily integrated into the project.

## Credits and acknowledgements

Expand Down Expand Up @@ -488,6 +495,8 @@ We appreciate your feedback! If you have any comments, suggestions, or run into
[st-cloud]: https://streamlit.io/cloud
[stlite_repo]: https://github.com/whitphx/stlite
[st-forum-exe]: https://discuss.streamlit.io/t/streamlit-deployment-as-an-executable-file-exe-for-windows-macos-and-android/6812
[conventional-commits]: https://www.conventionalcommits.org/
[changelog-from-release-repo]: https://github.com/rhysd/changelog-from-release
[Mona]: https://multiomics-analytics-group.github.io/
[Biosustain]: https://www.biosustain.dtu.dk/
[scriberia]: https://www.scriberia.co.uk/
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ reference/vuegen
sections_readme/contributing
sections_readme/credits
sections_readme/contact
sections_readme/changelog
```

```{toctree}
Expand Down
11 changes: 10 additions & 1 deletion docs/split_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def process_readme(readme_path, output_dir):
else:
raise ValueError(f"Section '{section_title}' not found in README")

# Include CONTRIBUTING.md with its own link references
# Copy CONTRIBUTING.md with its own link references
contrib_path = readme_path.parent / "CONTRIBUTING.md"
try:
raw_contrib = contrib_path.read_text()
Expand All @@ -124,6 +124,15 @@ def process_readme(readme_path, output_dir):
except FileNotFoundError as e:
raise FileNotFoundError(f"CONTRIBUTING.md not found at {contrib_path}") from e

# Copy CHANGELOG.md to the output directory
changelog_path = readme_path.parent / "CHANGELOG.md"
try:
raw_changelog = changelog_path.read_text()
(output_dir / "changelog.md").write_text(raw_changelog)
print("Generated changelog.md")
except FileNotFoundError as e:
raise FileNotFoundError(f"CHANGELOG.md not found at {changelog_path}") from e


if __name__ == "__main__":
default_readme = Path(__file__).resolve().parent.parent / "README.md"
Expand Down