-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gen-files/reference.py for the reference generation
- Loading branch information
Showing
6 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,10 @@ jobs: | |
run: | | ||
python --version | ||
python -m pip list | ||
- name: Set Env for tablite Import | ||
uses: allenevans/[email protected] | ||
with: | ||
USE_NIMPORTER: false | ||
- name: Configure Git user | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,9 @@ plugins: | |
- mike | ||
- same-dir | ||
- awesome-pages | ||
- gen-files: | ||
scripts: | ||
- reference.py | ||
|
||
extra: | ||
version: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/python | ||
|
||
import tablite | ||
import mkdocs_gen_files | ||
import pkgutil | ||
|
||
# We are generating files in the virtual mkdocs_gen_files environment, no real files are created | ||
for submodule in pkgutil.iter_modules(tablite.__path__): | ||
with mkdocs_gen_files.open("reference/{submodule_name}.md".format(submodule_name=submodule.name), "w") as f: | ||
print("::: tablite.{submodule_name}".format(submodule_name=submodule.name), file=f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ mkdocstrings | |
mkdocstrings-python | ||
mkdocs-same-dir | ||
mkdocs-awesome-pages-plugin | ||
mkdocs-gen-files |