Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed May 17, 2024
1 parent efd117c commit ddf71b6
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 54 deletions.
1 change: 0 additions & 1 deletion docs/changelog.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/gen_ref_pages.py

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/license.md

This file was deleted.

16 changes: 6 additions & 10 deletions mkdocs.yml → docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ site_name: services-test4
site_description: services-test4
repo_name: afuetterer/services-test4
repo_url: https://github.com/afuetterer/services-test4
watch: [README.md, src/services_test4]
docs_dir: src
edit_uri: edit/main/docs/
strict: true
watch:
- ../src

nav:
- Home: index.md
# - Usage: cli.md
# - Reference: reference/
- Changelog: changelog.md
- License: license.md

theme:
name: material
custom_dir: docs/overrides
custom_dir: src/overrides
features:
- content.code.annotate

Expand All @@ -29,12 +31,6 @@ plugins:
# options:
# docstring_style: google
- include-markdown
- gen-files:
scripts:
- docs/gen_ref_pages.py
- literate-nav:
nav_file: SUMMARY.md
- section-index

markdown_extensions:
- admonition
Expand Down
1 change: 1 addition & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include-markdown "../../CHANGELOG.md" %}
1 change: 1 addition & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include-markdown "../../README.md" %}
1 change: 1 addition & 0 deletions docs/src/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include-markdown "../../LICENSE.md" %}
File renamed without changes.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ all = [
features = ["docs"]

[tool.hatch.envs.docs.scripts]
build = "mkdocs build --verbose"
serve = "mkdocs serve --verbose"
deploy = "mike deploy --push --update-aliases $(hatch version) latest"
build = "mkdocs build --verbose --config-file=docs/mkdocs.yml"
serve = "mkdocs serve --verbose --config-file=docs/mkdocs.yml"
deploy = "mike deploy --push --update-aliases $(hatch version) latest --config-file=docs/mkdocs.yml"

# black
# Ref: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
Expand Down Expand Up @@ -216,10 +216,10 @@ logging_use_named_masks = true
major_on_zero = false
tag_format = "{version}"
version_toml = ["pyproject.toml:project.version"]
assets = ["CITATION.cff"]
build_command = """
sed -i "s/^version: .*/version: $NEW_VERSION/" CITATION.cff
sed -i "s/^date-released: .*/date-released: $(date "+%Y-%m-%d")/" CITATION.cff
git add CITATION.cff
python -m pip install "build[uv]>=1.2.1"
python -m build --installer=uv
"""
Expand Down

0 comments on commit ddf71b6

Please sign in to comment.