-
Notifications
You must be signed in to change notification settings - Fork 136
Replace Sphinx docs with MkDocs Material #272
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
Open
anatoly-scherbakov
wants to merge
46
commits into
master
Choose a base branch
from
docs/mkdocs-material
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,267
−1,181
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2b3140e
Ignore MkDocs site/ build output
anatoly-scherbakov b434261
Add MkDocs documentation conventions to AGENTS.md
anatoly-scherbakov d946dda
Note README and CONTRIBUTING markdown conversion in changelog
anatoly-scherbakov 967c3c3
Remove reStructuredText contributing guide
anatoly-scherbakov b92bb9c
Add markdown contributing guide
anatoly-scherbakov cb23a71
Package README.md instead of README.rst in sdist
anatoly-scherbakov b30d9a1
Add MkDocs docs targets and lint docs_macros.py
anatoly-scherbakov 534ecd1
Remove reStructuredText readme
anatoly-scherbakov aa3d805
Convert README from reStructuredText to Markdown
anatoly-scherbakov dce4e22
Point PyPI readme symlink at README.md
anatoly-scherbakov 9b1b704
Remove Sphinx docs Makefile
anatoly-scherbakov 2a8291f
Remove Sphinx configuration
anatoly-scherbakov 6ac7d47
Remove Sphinx docs index
anatoly-scherbakov e2eb589
Remove Sphinx Windows makefile
anatoly-scherbakov 4bb192a
Switch docs dependencies to MkDocs Material stack
anatoly-scherbakov 50fd970
Add Quickstart and Reference nav tabs for awesome-pages
anatoly-scherbakov 72298e6
Add cover image for docs home page
anatoly-scherbakov 40b15c7
Add conformance page with skipped tests table
anatoly-scherbakov 3618999
Add Earth DBpedia JSON-LD to N-Quads home example
anatoly-scherbakov 36952a4
Add aiohttp document loader class example
anatoly-scherbakov a06ff9c
Add aiohttp loader extra kwargs example
anatoly-scherbakov 3754794
Add secure aiohttp document loader example
anatoly-scherbakov 266178a
Add custom DocumentLoader example with context:// scheme
anatoly-scherbakov b063c94
Add FrozenDocumentLoader default bundled contexts example
anatoly-scherbakov 41b9e30
Add FrozenDocumentLoader extended allowlist example
anatoly-scherbakov 8d3415a
Add RequestsDocumentLoader extra kwargs example
anatoly-scherbakov 1ad752a
Add secure RequestsDocumentLoader example
anatoly-scherbakov 299836b
Add RequestsDocumentLoader timeout example
anatoly-scherbakov 5568e95
Add MkDocs home page with badges and maintainer cards
anatoly-scherbakov 71dcc5c
Add installation page
anatoly-scherbakov b527117
Add AioHttpDocumentLoader reference page
anatoly-scherbakov ebe8061
Add custom DocumentLoader reference page
anatoly-scherbakov a66fea6
Add FrozenDocumentLoader reference page
anatoly-scherbakov b832508
Add document loaders index with navigation cards
anatoly-scherbakov 94ddc6e
Add RequestsDocumentLoader reference page
anatoly-scherbakov 4020369
Add Reference section index with card navigation
anatoly-scherbakov ba138e1
Add docs styles for maintainer cards and example links
anatoly-scherbakov 9e8d918
Add runnable example macro with GitHub source link
anatoly-scherbakov 011647a
Add MkDocs Material site configuration
anatoly-scherbakov 7030822
Add GitHub Actions workflow to build and deploy docs
anatoly-scherbakov 72bfac7
Read long description from README.md markdown
anatoly-scherbakov 9b433bb
Reformat ContextResolver constructor signature
anatoly-scherbakov 84a7b99
Reformat jsonld processor methods
anatoly-scherbakov f318117
Update json-ld-api submodule
anatoly-scherbakov 8aa1728
Update json-ld-framing submodule
anatoly-scherbakov 0dd3ed7
Reformat test_jsonld layout and assertions
anatoly-scherbakov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,53 @@ | ||
| name: Documentation | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| branches: | ||
| - '**' | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | ||
| with: | ||
| python-version: '3.14' | ||
| cache: 'pip' | ||
| - name: Install documentation dependencies | ||
| run: make docs-install | ||
| - name: Build documentation | ||
| run: make docs-build | ||
| - name: Upload Pages artifact | ||
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
| uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 | ||
| with: | ||
| path: site | ||
|
|
||
| deploy: | ||
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| permissions: | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ build | |
| cover | ||
| dist | ||
| docs/_build | ||
| site/ | ||
| lib/PyLD.egg-info | ||
| profiler | ||
| tests/test_caching.py | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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,80 @@ | ||
| # Contributing to PyLD | ||
|
|
||
| Want to contribute to PyLD? Great! Here are a few notes: | ||
|
|
||
| ## Code | ||
|
|
||
| * In general, follow the common [PEP 8 Style Guide](https://www.python.org/dev/peps/pep-0008/). | ||
| * Try to make the code pass [ruff](https://docs.astral.sh/ruff/) checks. | ||
|
|
||
| * `make lint` or `ruff check lib/pyld/*` | ||
| * You can also apply automatic fixing and formatting | ||
| using `make fmt` | ||
|
|
||
| * Use version `X.Y.Z-dev` in dev mode. | ||
| * Use version `X.Y.Z` for releases. | ||
|
|
||
| ## Documentation | ||
|
|
||
| The public documentation site is built with MkDocs Material. | ||
|
|
||
| * Install documentation dependencies: | ||
|
|
||
| * `make docs-install` | ||
|
|
||
| * Build the site: | ||
|
|
||
| * `make docs-build` | ||
|
|
||
| * Preview documentation locally: | ||
|
|
||
| * `make docs-serve` (override port with `PORT=8008 make docs-serve`) | ||
|
|
||
| * Refresh bundled JSON-LD context files: | ||
|
|
||
| * `make download-bundled-contexts` | ||
|
|
||
| ## Versioning | ||
|
|
||
| * Follow the [Semantic Versioning](https://semver.org/) guidelines. | ||
|
|
||
| ## Release Process | ||
|
|
||
| * `$EDITOR CHANGELOG.md`: update CHANGELOG with new notes, version, and date. | ||
| * commit changes | ||
| * `$EDITOR lib/pyld/__about__.py`: update to release version and remove `-dev` suffix. | ||
| * `git commit CHANGELOG.md lib/pyld/__about__.py -m "Release {version}."` | ||
| * `git tag {version}` | ||
| * `$EDITOR lib/pyld/__about__.py`: update to next version and add `-dev` suffix. | ||
| * `git commit lib/pyld/__about__.py -m "Start {next-version}."` | ||
| * `git push --tags` | ||
|
|
||
| To ensure a clean [package](https://pypi.org/project/PyLD/) upload to [PyPI](https://pypi.org/), | ||
| use a clean checkout, and run the following: | ||
|
|
||
| * For more info, look at the packaging | ||
| [guide](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/). | ||
| * Setup an [API token](https://pypi.org/help/#apitoken). Recommend using a | ||
| specific "PyLD" token and set it up as a "repository" in your | ||
| [`~/.pypirc`](https://packaging.python.org/en/latest/specifications/pypirc/) | ||
| for use in the upload command. | ||
| * The below builds and uploads a sdist and wheel. Adjust as needed depending | ||
| on how you manage and clean "dist/" dir files. | ||
| * `git checkout {version}` | ||
| * `python3 -m build` | ||
| * `twine check dist/*` | ||
| * `twine upload -r PyLD dist/*` | ||
|
|
||
| ## Implementation Report Process | ||
|
|
||
| As of early 2020, the process to generate an EARL report for the official | ||
| [JSON-LD Processor Conformance](https://w3c.github.io/json-ld-api/reports/) page is: | ||
|
|
||
| * Run the tests on the `json-ld-api` and `json-ld-framing` test repos to | ||
| generate a `.jsonld` test report as explained in [README.md](./README.md#tests) | ||
| * Use the [rdf](https://rubygems.org/gems/rdf) tool to generate a `.ttl`: | ||
|
|
||
| * `rdf serialize pyld-earl.jsonld --output-format turtle -o pyld-earl.ttl` | ||
|
|
||
| * Optionally follow the [report instructions](https://github.com/w3c/json-ld-api/tree/master/reports) to generate the HTML report for inspection. | ||
| * Submit a PR to the [json-ld-api repository](https://github.com/w3c/json-ld-api/pulls) with at least the `.ttl`. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| include README.rst README.txt LICENSE CHANGELOG.md | ||
| include README.md README.txt LICENSE CHANGELOG.md | ||
| recursive-include lib/pyld/documentloader/frozen/bundled *.jsonld |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.