Skip to content

Commit

Permalink
Auto generate changelog and contributing instructions from markdown w…
Browse files Browse the repository at this point in the history
…ith pandoc
  • Loading branch information
ml-evs committed Dec 22, 2023
1 parent 9af669a commit 8440e8c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
doc/_build/
doc/source/api/*.rst

doc/source/dev/index.rst
doc/source/changelog.rst

# PyBuilder
.pybuilder/
Expand Down
15 changes: 14 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,21 @@ build/generate-stamp: $(wildcard source/reference/*.rst)
mkdir -p build
touch build/generate-stamp

generate-rst-from-md:
# generate contributing docs
mkdir -p source/dev
pandoc --from=markdown --to=rst --output=source/dev/_index.rst ../CONTRIBUTING.md
echo ".. _devindex:" > source/dev/index.rst
cat source/dev/_index.rst >> source/dev/index.rst
rm source/dev/_index.rst
# generate changelog
pandoc --from=markdown --to=rst --output=source/_changelog.rst ../CHANGELOG.md
echo ".. _changelog:" > source/changelog.rst
cat source/_changelog.rst >> source/changelog.rst
rm source/_changelog.rst

html: api-doc html-build
html-build: generate
html-build: generate generate-rst-from-md
mkdir -p build/html build/doctrees
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html $(FILES)
@echo
Expand Down
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Jobflow Remote documentation
User Guide <user/index>
API reference <api/index>
Development <dev/index>
Changelog <changelog>
release


Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["setuptools >= 42", "versioningit ~= 1.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "jobflow_remote"
description = "jobflow-remote is a python package to run jobflow workflows on remote resources"
name = "jobflow-remote"
description = "Jobflow Remote is a Python package to run jobflow workflows on remote resources"
readme = "README.md"
keywords = []
license = { text = "modified BSD" }
Expand Down Expand Up @@ -64,10 +64,10 @@ strict = []
jf = "jobflow_remote.cli.jf:app"

[project.urls]
homepage = "https://Matgenix.github.io/jobflow_remote/"
repository = "https://github.com/Matgenix/jobflow_remote"
documentation = "https://Matgenix.github.io/jobflow_remote/"
changelog = "https://github.com/Matgenix/jobflow_remote/CHANGELOG.md"
homepage = "https://Matgenix.github.io/jobflow-remote/"
repository = "https://github.com/Matgenix/jobflow-remote"
documentation = "https://Matgenix.github.io/jobflow-remote/"
changelog = "https://github.com/Matgenix/jobflow-remote/CHANGELOG.md"

[tool.setuptools.package-data]
jobflow_remote = ["py.typed"]
Expand Down

0 comments on commit 8440e8c

Please sign in to comment.