Skip to content
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

Generate usage examples for FleurXMLModifier in docs #173

Draft
wants to merge 36 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b49991a
Add short descriptions to setter functions
janssenhenning Jun 19, 2022
9cf1f65
WIP: Autogenerate Usage examples in the documentation
janssenhenning Jun 20, 2022
e8b9170
Add more usage examples and add them to the toctree temporarily
janssenhenning Jun 20, 2022
099f562
Even more usage-examples
janssenhenning Jun 20, 2022
c1dd362
Improve template with contents and nested heading
janssenhenning Jun 22, 2022
3bbd689
Adjust colors in XML diff function
janssenhenning Jun 22, 2022
2c78269
Move the sphinx extension stuff into a subfolder for nicer organization
janssenhenning Jun 22, 2022
accf572
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 23, 2022
2c6c39c
Fixes after rebase
janssenhenning Jun 23, 2022
311e34f
Improve template
janssenhenning Jul 17, 2022
98686c1
Move error handling in schema_dict into function
janssenhenning Jul 17, 2022
f6a74dc
Move finding paths to attributes from tag names into separate method
janssenhenning Jul 17, 2022
f204e98
Add make step to docs to run the fleurxmlmodfier docstring write script
janssenhenning Jul 17, 2022
2329d0b
Delete comment from example file to reduce noise
janssenhenning Jul 17, 2022
bcb920f
More examples
janssenhenning Jul 17, 2022
6181779
Clearer docstring
janssenhenning Jul 17, 2022
a246b56
Cleanup conf.py
janssenhenning Jul 17, 2022
3aeebd0
typing
janssenhenning Jul 17, 2022
226ca9f
Start experimenting with some link layouts on the actual fleurxmlmodi…
janssenhenning Jul 17, 2022
cbc89e4
Add references to API references
janssenhenning Jul 17, 2022
18e8e27
Add all missing links
janssenhenning Jul 17, 2022
f35ec03
formatting
janssenhenning Jul 17, 2022
7358e62
more
janssenhenning Jul 18, 2022
1b7c2fa
fixes
janssenhenning Jul 18, 2022
00fb4d4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 10, 2022
11a9552
Customize toggle descriptions
janssenhenning May 12, 2023
0e8e77a
missing dependency
janssenhenning May 12, 2023
9b9aa5c
fix
janssenhenning May 12, 2023
846e581
More cleanup
janssenhenning May 12, 2023
2a45814
Fix error message
janssenhenning May 12, 2023
af19aae
Add more usage examples
janssenhenning May 12, 2023
40db2db
More updates
janssenhenning May 12, 2023
313e6dd
more
janssenhenning May 12, 2023
b2bd63b
update
janssenhenning May 12, 2023
d46fcd3
More
janssenhenning May 12, 2023
0f447b6
fixes
janssenhenning May 12, 2023
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ instance/
# Sphinx documentation
docs/_build/
docs/source/_build/
docs/source/user_guide/fleurxmlmodifier_usage_examples/examples

# PyBuilder
target/
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ repos:
masci_tools/io/fleurxmlmodifier.py|
masci_tools/io/common_functions.py|
masci_tools/util/xml/.*py|
masci_tools/util/sphinxext/.*py|
masci_tools/util/lockable_containers.py|
masci_tools/util/case_insensitive_dict.py|
masci_tools/util/schema_dict_util.py|
Expand Down
8 changes: 6 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
PYTHON3 ?= python3

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
Expand All @@ -14,7 +15,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
.PHONY: help clean modifier-docstrings html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext

help:
@echo "Please use \`make <target>' where <target> is one of"
Expand All @@ -41,7 +42,10 @@ help:
clean:
-rm -r $(BUILDDIR)

html:
modifier-docstrings:
$(PYTHON3) ../utils/write_fleurxmlmodifier_docstrings.py

html: modifier-docstrings
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Expand Down
Loading