oodocs 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. oodocs-1.0.1/.github/workflows/ci.yml +39 -0
  2. oodocs-1.0.1/.github/workflows/release.yml +134 -0
  3. oodocs-1.0.1/.gitignore +214 -0
  4. oodocs-1.0.1/.vscode/extensions.json +7 -0
  5. oodocs-1.0.1/.vscode/settings.json +26 -0
  6. oodocs-1.0.1/LICENSE +21 -0
  7. oodocs-1.0.1/PKG-INFO +354 -0
  8. oodocs-1.0.1/README.md +312 -0
  9. oodocs-1.0.1/codex.md +51 -0
  10. oodocs-1.0.1/examples/journal_paper_example/assets/ablation_results.csv +5 -0
  11. oodocs-1.0.1/examples/journal_paper_example/assets/benchmark_results.csv +5 -0
  12. oodocs-1.0.1/examples/journal_paper_example/assets/system-diagram.png +0 -0
  13. oodocs-1.0.1/examples/journal_paper_example/assets/traceability-diagram.png +0 -0
  14. oodocs-1.0.1/examples/journal_paper_example/main.py +454 -0
  15. oodocs-1.0.1/examples/native_benchmark_report/main.py +273 -0
  16. oodocs-1.0.1/examples/release_notes_digest/assets/release-digest-workflow.png +0 -0
  17. oodocs-1.0.1/examples/release_notes_digest/main.py +280 -0
  18. oodocs-1.0.1/examples/template_presets/build_all.py +37 -0
  19. oodocs-1.0.1/examples/template_presets/journal_article_template.py +239 -0
  20. oodocs-1.0.1/examples/usage_guide_example/assets/author-layout-diagram.png +0 -0
  21. oodocs-1.0.1/examples/usage_guide_example/assets/cli-workflow-diagram.png +0 -0
  22. oodocs-1.0.1/examples/usage_guide_example/assets/oodocs-logo.png +0 -0
  23. oodocs-1.0.1/examples/usage_guide_example/assets/pipeline-diagram.png +0 -0
  24. oodocs-1.0.1/examples/usage_guide_example/assets/renderer-behavior-diagram.png +0 -0
  25. oodocs-1.0.1/examples/usage_guide_example/assets/usage-guide-figure.png +0 -0
  26. oodocs-1.0.1/examples/usage_guide_example/main.py +1765 -0
  27. oodocs-1.0.1/pyproject.toml +73 -0
  28. oodocs-1.0.1/release-notes/v0.10.0.md +30 -0
  29. oodocs-1.0.1/release-notes/v0.3.1.md +17 -0
  30. oodocs-1.0.1/release-notes/v0.4.0.md +31 -0
  31. oodocs-1.0.1/release-notes/v0.5.0.md +21 -0
  32. oodocs-1.0.1/release-notes/v0.6.0.md +19 -0
  33. oodocs-1.0.1/release-notes/v0.7.0.md +21 -0
  34. oodocs-1.0.1/release-notes/v0.8.0.md +52 -0
  35. oodocs-1.0.1/release-notes/v0.9.0.md +39 -0
  36. oodocs-1.0.1/release-notes/v0.9.1.md +19 -0
  37. oodocs-1.0.1/release-notes/v1.0.0.md +39 -0
  38. oodocs-1.0.1/release-notes/v1.0.1.md +32 -0
  39. oodocs-1.0.1/scripts/release.ps1 +49 -0
  40. oodocs-1.0.1/scripts/setup-repo.cmd +5 -0
  41. oodocs-1.0.1/scripts/setup-repo.ps1 +163 -0
  42. oodocs-1.0.1/setup.cfg +4 -0
  43. oodocs-1.0.1/src/oodocs/__init__.py +294 -0
  44. oodocs-1.0.1/src/oodocs/__main__.py +9 -0
  45. oodocs-1.0.1/src/oodocs/cli.py +191 -0
  46. oodocs-1.0.1/src/oodocs/compatibility.py +102 -0
  47. oodocs-1.0.1/src/oodocs/components/__init__.py +106 -0
  48. oodocs-1.0.1/src/oodocs/components/base.py +116 -0
  49. oodocs-1.0.1/src/oodocs/components/blocks.py +1181 -0
  50. oodocs-1.0.1/src/oodocs/components/equations.py +271 -0
  51. oodocs-1.0.1/src/oodocs/components/generated.py +267 -0
  52. oodocs-1.0.1/src/oodocs/components/inline.py +909 -0
  53. oodocs-1.0.1/src/oodocs/components/markup.py +396 -0
  54. oodocs-1.0.1/src/oodocs/components/media.py +1105 -0
  55. oodocs-1.0.1/src/oodocs/components/people.py +221 -0
  56. oodocs-1.0.1/src/oodocs/components/positioning.py +430 -0
  57. oodocs-1.0.1/src/oodocs/components/references.py +535 -0
  58. oodocs-1.0.1/src/oodocs/core.py +189 -0
  59. oodocs-1.0.1/src/oodocs/document.py +293 -0
  60. oodocs-1.0.1/src/oodocs/importers/__init__.py +18 -0
  61. oodocs-1.0.1/src/oodocs/importers/markdown.py +745 -0
  62. oodocs-1.0.1/src/oodocs/importers/notebook.py +380 -0
  63. oodocs-1.0.1/src/oodocs/layout/__init__.py +35 -0
  64. oodocs-1.0.1/src/oodocs/layout/indexing.py +580 -0
  65. oodocs-1.0.1/src/oodocs/layout/theme.py +991 -0
  66. oodocs-1.0.1/src/oodocs/presets/__init__.py +25 -0
  67. oodocs-1.0.1/src/oodocs/presets/components.py +228 -0
  68. oodocs-1.0.1/src/oodocs/presets/templates.py +203 -0
  69. oodocs-1.0.1/src/oodocs/renderers/__init__.py +7 -0
  70. oodocs-1.0.1/src/oodocs/renderers/context.py +45 -0
  71. oodocs-1.0.1/src/oodocs/renderers/docx.py +3192 -0
  72. oodocs-1.0.1/src/oodocs/renderers/html.py +2305 -0
  73. oodocs-1.0.1/src/oodocs/renderers/pdf.py +3084 -0
  74. oodocs-1.0.1/src/oodocs/renderers/syntax.py +107 -0
  75. oodocs-1.0.1/src/oodocs/settings.py +335 -0
  76. oodocs-1.0.1/src/oodocs/validation.py +1025 -0
  77. oodocs-1.0.1/src/oodocs/workflows.py +296 -0
  78. oodocs-1.0.1/src/oodocs.egg-info/PKG-INFO +354 -0
  79. oodocs-1.0.1/src/oodocs.egg-info/SOURCES.txt +91 -0
  80. oodocs-1.0.1/src/oodocs.egg-info/dependency_links.txt +1 -0
  81. oodocs-1.0.1/src/oodocs.egg-info/entry_points.txt +2 -0
  82. oodocs-1.0.1/src/oodocs.egg-info/requires.txt +17 -0
  83. oodocs-1.0.1/src/oodocs.egg-info/top_level.txt +1 -0
  84. oodocs-1.0.1/tests/example_regression.py +91 -0
  85. oodocs-1.0.1/tests/test_cli.py +147 -0
  86. oodocs-1.0.1/tests/test_document_renderers.py +3145 -0
  87. oodocs-1.0.1/tests/test_journal_paper_example.py +184 -0
  88. oodocs-1.0.1/tests/test_markdown.py +294 -0
  89. oodocs-1.0.1/tests/test_native_benchmark_report_example.py +121 -0
  90. oodocs-1.0.1/tests/test_notebook.py +200 -0
  91. oodocs-1.0.1/tests/test_release_notes_digest_example.py +157 -0
  92. oodocs-1.0.1/tests/test_template_presets_examples.py +100 -0
  93. oodocs-1.0.1/tests/test_usage_guide_example.py +350 -0
@@ -0,0 +1,39 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
17
+
18
+ steps:
19
+ - name: Check out repository
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install -e ".[dev]"
33
+
34
+ - name: Run tests
35
+ run: python -m pytest
36
+
37
+ - name: Build distributions
38
+ if: matrix.python-version == '3.11'
39
+ run: python -m build
@@ -0,0 +1,134 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ compatibility-test:
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
16
+
17
+ steps:
18
+ - name: Check out repository
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ python -m pip install -e ".[dev]"
32
+
33
+ - name: Run tests
34
+ run: python -m pytest
35
+
36
+ build-release:
37
+ needs: compatibility-test
38
+ runs-on: ubuntu-latest
39
+
40
+ permissions:
41
+ contents: write
42
+
43
+ steps:
44
+ - name: Check out repository
45
+ uses: actions/checkout@v4
46
+ with:
47
+ fetch-depth: 0
48
+
49
+ - name: Set up Python
50
+ uses: actions/setup-python@v5
51
+ with:
52
+ python-version: "3.11"
53
+
54
+ - name: Install dependencies
55
+ run: |
56
+ python -m pip install --upgrade pip build
57
+ python -m pip install -e ".[dev]"
58
+
59
+ - name: Run tests
60
+ run: python -m pytest
61
+
62
+ - name: Build distributions
63
+ run: python -m build
64
+
65
+ - name: Render release documents
66
+ run: |
67
+ python examples/usage_guide_example/main.py
68
+ python examples/journal_paper_example/main.py
69
+ python examples/native_benchmark_report/main.py
70
+ python examples/release_notes_digest/main.py
71
+
72
+ - name: Store Python distributions for PyPI job
73
+ uses: actions/upload-artifact@v4
74
+ with:
75
+ name: python-package-distributions
76
+ path: dist/
77
+
78
+ - name: Resolve release notes
79
+ id: release_notes
80
+ shell: bash
81
+ run: |
82
+ notes_path="release-notes/${GITHUB_REF_NAME}.md"
83
+ if [ -f "$notes_path" ]; then
84
+ echo "exists=true" >> "$GITHUB_OUTPUT"
85
+ echo "path=$notes_path" >> "$GITHUB_OUTPUT"
86
+ else
87
+ echo "exists=false" >> "$GITHUB_OUTPUT"
88
+ fi
89
+
90
+ - name: Publish GitHub Release with repo notes
91
+ if: steps.release_notes.outputs.exists == 'true'
92
+ uses: softprops/action-gh-release@v2
93
+ with:
94
+ files: |
95
+ dist/*
96
+ artifacts/usage-guide/oodocs-user-guide.pdf
97
+ artifacts/journal-paper/oodocs-development-philosophy.pdf
98
+ artifacts/native-benchmark-report/native-python-benchmark.pdf
99
+ artifacts/release-notes/oodocs-release-notes.pdf
100
+ body_path: ${{ steps.release_notes.outputs.path }}
101
+
102
+ - name: Publish GitHub Release
103
+ if: steps.release_notes.outputs.exists != 'true'
104
+ uses: softprops/action-gh-release@v2
105
+ with:
106
+ files: |
107
+ dist/*
108
+ artifacts/usage-guide/oodocs-user-guide.pdf
109
+ artifacts/journal-paper/oodocs-development-philosophy.pdf
110
+ artifacts/native-benchmark-report/native-python-benchmark.pdf
111
+ artifacts/release-notes/oodocs-release-notes.pdf
112
+ generate_release_notes: true
113
+
114
+ publish-pypi:
115
+ name: Publish Python distribution to PyPI
116
+ needs: build-release
117
+ runs-on: ubuntu-latest
118
+
119
+ environment:
120
+ name: pypi
121
+ url: https://pypi.org/p/oodocs
122
+
123
+ permissions:
124
+ id-token: write
125
+
126
+ steps:
127
+ - name: Download Python distributions
128
+ uses: actions/download-artifact@v4
129
+ with:
130
+ name: python-package-distributions
131
+ path: dist/
132
+
133
+ - name: Publish distributions to PyPI
134
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,214 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Local repository temp/build helpers
198
+ .build-temp/
199
+ .setup-temp/
200
+ .setup-temp-manual/
201
+ artifacts/
202
+ pytest-cache-files-*/
203
+
204
+ # Cursor
205
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
206
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
207
+ # refer to https://docs.cursor.com/context/ignore-files
208
+ .cursorignore
209
+ .cursorindexingignore
210
+
211
+ # Marimo
212
+ marimo/_static/
213
+ marimo/_lsp/
214
+ __marimo__/
@@ -0,0 +1,7 @@
1
+ {
2
+ "recommendations": [
3
+ "ms-python.python",
4
+ "ms-python.python-environments",
5
+ "ms-python.vscode-pylance"
6
+ ]
7
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv",
3
+ "python.analysis.enableEditableInstalls": true,
4
+ "python.analysis.extraPaths": [
5
+ "${workspaceFolder}/src"
6
+ ],
7
+ "python.testing.pytestEnabled": true,
8
+ "python.testing.unittestEnabled": false,
9
+ "python.testing.pytestArgs": [
10
+ "tests"
11
+ ],
12
+ "python-envs.workspaceSearchPaths": [
13
+ "./.venv"
14
+ ],
15
+ "files.exclude": {
16
+ "**/__pycache__": true,
17
+ "**/*.pyc": true,
18
+ "**/*.egg-info": true,
19
+ ".pytest_cache": true,
20
+ ".ruff_cache": true,
21
+ ".mypy_cache": true,
22
+ ".build-temp": true,
23
+ "build": true,
24
+ "dist": true
25
+ }
26
+ }
oodocs-1.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hyeong-Gon Jo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.