-
Notifications
You must be signed in to change notification settings - Fork 20
Build docs PR preview on RTD #115
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
stevepiercy
wants to merge
12
commits into
master
Choose a base branch
from
rtd-build
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.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
97b5089
Poke the PR to see if it builds now.
stevepiercy 0db199d
Overhaul Makefile
stevepiercy 9ada725
Clean up .gitignore
stevepiercy e9d4ea0
Don't ignore uv.lock
stevepiercy ec19647
Purge comments from conf.py and update to find package information
stevepiercy d86dd26
Remove unused import
stevepiercy efb47a6
Update uv.lock
stevepiercy b518d5c
Convert README.md from reST to MD.
stevepiercy 1a96d9a
Fix to assume commands in path when inside nix shell
datakurre 945f81b
Fix to disable uv sync when in nix shell
datakurre b928930
- Refactor plone-javascript to plone-client
stevepiercy 5f0e680
A wee bit more docs
stevepiercy 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
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 |
|---|---|---|
| @@ -1,71 +1,95 @@ | ||
| sphinxcontrib-httpexample | ||
| ========================= | ||
| # sphinxcontrib-httpexample | ||
|
|
||
| .. image:: https://github.com/collective/sphinxcontrib-httpexample/actions/workflows/build.yml/badge.svg?branch=master | ||
| :target: https://github.com/collective/sphinxcontrib-httpexample/actions | ||
| <img alt="GitHub Actions" src="https://github.com/collective/sphinxcontrib-httpexample/actions/workflows/build.yml/badge.svg?branch=master" href="https://github.com/collective/sphinxcontrib-httpexample/actions"> | ||
| <img alt="Coverage" src="https://coveralls.io/repos/github/collective/sphinxcontrib-httpexample/badge.svg?branch=master" href="https://coveralls.io/github/collective/sphinxcontrib-httpexample?branch=master"> | ||
| <img alt="PyPI package" src="https://badge.fury.io/py/sphinxcontrib-httpexample.svg" href="https://badge.fury.io/py/sphinxcontrib-httpexample"> | ||
| <img alt="Documentation" src="https://readthedocs.org/projects/sphinxcontrib-httpexample/badge/?version=latest" href="http://sphinxcontrib-httpexample.readthedocs.io/en/latest"> | ||
|
|
||
| .. image:: https://coveralls.io/repos/github/collective/sphinxcontrib-httpexample/badge.svg?branch=master | ||
| :target: https://coveralls.io/github/collective/sphinxcontrib-httpexample?branch=master | ||
| sphinxcontrib-httpexample enhances [`sphinxcontrib-httpdomain`](https://pythonhosted.org/sphinxcontrib-httpdomain/), a Sphinx domain extension for describing RESTful HTTP APIs in detail, with a simple call example directive. The new directive provided by this extension generates RESTful HTTP API call examples for different tools from a single HTTP request example. | ||
|
|
||
| .. image:: https://badge.fury.io/py/sphinxcontrib-httpexample.svg | ||
| :target: https://badge.fury.io/py/sphinxcontrib-httpexample | ||
| The audience for this extension are developers and technical writes documenting their RESTful HTTP APIs. This extension has originally been developed for documenting [`plone.restapi`](https://6.docs.plone.org/plone.restapi/docs/source/index.html). | ||
|
|
||
| .. image:: https://readthedocs.org/projects/sphinxcontrib-httpexample/badge/?version=latest | ||
| :target: http://sphinxcontrib-httpexample.readthedocs.io/en/latest | ||
|
|
||
| sphinxcontrib-httpexample enhances `sphinxcontrib-httpdomain`_, a Sphinx domain extension for describing RESTful HTTP APIs in detail, with a simple call example directive. The new directive provided by this extension generates RESTful HTTP API call examples for different tools from a single HTTP request example. | ||
| ## Features | ||
|
|
||
| The audience for this extension are developers and technical writes documenting their RESTful HTTP APIs. This extension has originally been developed for documenting `plone.restapi`_. | ||
| - Directive for generating various RESTful HTTP API call examples from single HTTP request. | ||
| - Supported tools: | ||
|
|
||
| .. _sphinxcontrib-httpdomain: https://pythonhosted.org/sphinxcontrib-httpdomain/ | ||
| .. _plone.restapi: http://plonerestapi.readthedocs.org/ | ||
| - [curl](https://curl.haxx.se/) | ||
| - [wget](https://www.gnu.org/software/wget/) | ||
| - [httpie](https://httpie.org/) | ||
| - [python-requests](http://docs.python-requests.org/) | ||
|
|
||
|
|
||
| Features | ||
| -------- | ||
| ## Examples | ||
|
|
||
| * Directive for generating various RESTful HTTP API call examples from single HTTP request. | ||
| This extension has been used at least in the following documentations: | ||
|
|
||
| * Supported tools: | ||
| - https://6.docs.plone.org/plone.restapi/docs/source/index.html | ||
| - https://sphinxcontrib-httpexample.readthedocs.org/en/latest/ | ||
| - https://guillotina.readthedocs.io/en/latest/ | ||
|
|
||
| - curl_ | ||
| - wget_ | ||
| - httpie_ | ||
| - python-requests_ | ||
|
|
||
| .. _curl: https://curl.haxx.se/ | ||
| .. _wget: https://www.gnu.org/software/wget/ | ||
| .. _httpie: https://httpie.org/ | ||
| .. _python-requests: http://docs.python-requests.org/ | ||
| ## Documentation | ||
|
|
||
| Full documentation for end users can be found in the "docs" folder. It is also available online at http://sphinxcontrib-httpexample.readthedocs.org/ | ||
|
|
||
| Examples | ||
| -------- | ||
|
|
||
| This extension has been used at least in the following documentations: | ||
| ## Installation | ||
|
|
||
| * http://plonerestapi.readthedocs.org/ | ||
| * http://sphinxcontrib-httpexample.readthedocs.org/ | ||
| * https://guillotina.readthedocs.io/en/latest/ | ||
| Add `sphinxcontrib-httpexample` and `sphincontrib-httpdomain` into your project requirements. | ||
|
|
||
| Then configure your Sphinx configuration file `conf.py` with `sphinxcontrib.httpdomain` and `sphinxcontrib.httpexample` as follows. | ||
|
|
||
| Documentation | ||
| ------------- | ||
| ```python | ||
| extensions = [ | ||
| "sphinxcontrib.httpdomain", | ||
| "sphinxcontrib.httpexample", | ||
| ] | ||
| ``` | ||
|
|
||
| Full documentation for end users can be found in the "docs" folder. It is also available online at http://sphinxcontrib-httpexample.readthedocs.org/ | ||
|
|
||
| ## Contribute | ||
|
|
||
| To contribute to `sphinxcontrib-httpexample`, first set up your environment. | ||
|
|
||
|
|
||
| ### Set up development environment | ||
|
|
||
| Install [uv](https://6.docs.plone.org/glossary.html#term-uv). | ||
| Carefully read the console output for further instructions, and follow them, if needed. | ||
|
|
||
| ```shell | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| ``` | ||
|
|
||
| Initialize a Python virtual environment. | ||
|
|
||
| ```shell | ||
| uv venv | ||
| ``` | ||
|
|
||
| Install `sphinxcontrib-httpexample`. | ||
|
|
||
| ```shell | ||
| uv sync | ||
| ``` | ||
|
|
||
| ### Build documentation | ||
|
|
||
| Rebuild Sphinx documentation on changes, with live-reload in the browser | ||
|
|
||
| Installation | ||
| ------------ | ||
| ```shell | ||
| make livehtml | ||
| ``` | ||
|
|
||
| Add sphinxcontrib-httpexample into requirements of your product documentation and into the configuration file of your Sphinx documentation next to sphincontrib-httpdomain as follows: | ||
| To stop the preview, type `CTRL-C`. | ||
|
|
||
| .. code:: python | ||
|
|
||
| extensions = ['sphinxcontrib.httpdomain', 'sphinxcontrib.httpexample'] | ||
| ### Run tests | ||
|
|
||
| make te | ||
|
|
||
| License | ||
| ------- | ||
| ## License | ||
|
|
||
| The project is licensed under the GPLv2. |
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.