Skip to content

Commit

Permalink
merge: PR #20 from dev
Browse files Browse the repository at this point in the history
Weekly release 2023-02-20
  • Loading branch information
alycejenni committed Feb 20, 2023
2 parents 93185a1 + d5c2912 commit 35db4ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exclude: /(vendor|dist)/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
Expand Down Expand Up @@ -25,3 +26,9 @@ repos:
# these can't be pulled directly from the config atm, not sure why
args: ["-i", "--wrap-summaries=88", "--wrap-descriptions=88",
"--pre-summary-newline", "--make-summary-multi-line"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- id: prettier
types_or: [ javascript, vue, less, sass, scss, css ]
args: [ '--single-quote' ]
8 changes: 7 additions & 1 deletion docs/_scripts/gen_api_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
py_files = sorted(Path(root).rglob('*.py'))

for path in py_files:
try:
path.relative_to('ckanext/userdatasets/migration')
continue
except ValueError:
pass

module_path = path.relative_to(root).with_suffix('')
doc_path = path.relative_to(root).with_suffix('.md')
full_doc_path = Path('API', doc_path)
Expand All @@ -35,7 +41,7 @@

nav[parts] = doc_path.as_posix()

with mkdocs_gen_files.open(full_doc_path, "w") as fd:
with mkdocs_gen_files.open(full_doc_path, 'w') as fd:
ident = '.'.join(parts)
fd.write(f'::: ckanext.{ident}')

Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- toc:
permalink:

0 comments on commit 35db4ee

Please sign in to comment.