| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains the RST source files for OneCite's documentation, built with Sphinx.
Install the required documentation dependencies:
pip install -e ".[dev]"
# or
pip install sphinx sphinx-rtd-themeTo build the documentation as HTML:
# On Linux/macOS
make html
# On Windows (if make is not available)
sphinx-build -b html . _build/htmlThe built documentation will be in _build/html/. Open _build/html/index.html in your browser to view it.
PDF:
make latexpdfMan Pages:
make manTexinfo:
make texinfoEpub:
make epubTo remove all built documentation:
make cleandocs/ ├── conf.py # Sphinx configuration ├── index.rst # Main documentation index ├── installation.rst # Installation guide ├── quick_start.rst # Quick start guide ├── basic_usage.rst # Basic usage guide ├── advanced_usage.rst # Advanced usage guide ├── benchmarking.rst # Benchmark suite and regression checks ├── cli_contracts.rst # Stable CLI JSON/NDJSON contracts ├── onecite_skill.rst # Workflow skill package guide ├── python_api.rst # Python API guide ├── templates.rst # Custom templates guide ├── output_formats.rst # Output formats guide ├── faq.rst # Frequently asked questions ├── contributing.rst # Contributing guidelines ├── changelog.rst # Version changelog ├── api/ │ ├── core.rst # Core API reference │ ├── exceptions.rst # Exception reference │ └── pipeline.rst # Pipeline reference ├── Makefile # Build automation └── README.md # This file
Documentation is written in reStructuredText (RST) format. Here are some basics:
Main Section
============
Subsection
----------
Subsubsection
~~~~~~~~~~~~~
**Bold text** and *italic text*
.. code-block:: python
# Code block
import onecite
result = onecite.process_references(
"10.1038/nature14539", "txt", "journal_article_full",
"bibtex"
)
- Bullet list
- Another item
- Nested item
1. Numbered list
2. Second item
:doc:`Link to file`
`External link <https://example.com>`_Use .. code-block:: for syntax-highlighted code:
.. code-block:: python
from onecite import process_references
result = process_references(
"10.1038/nature14539",
input_type="txt",
template_name="journal_article_full",
output_format="bibtex"
)
print('\n\n'.join(result['results']))The Sphinx configuration is in conf.py. Key settings:
Documentation builds automatically on:
The documentation is hosted at:
The current workflow deploys this site from the main branch. It is not a separate, version-pinned “latest release” site; release documentation must not be inferred from this URL unless a release-specific deployment is added.
See contributing.rst for more details.
To create links within documentation:
:doc:`quick_start` # Link to another document
:ref:`genindex` # Link to generated index
:meth:`~onecite.process_references` # Link to methods
:class:`~onecite.RawEntry` # Link to classesTables:
========== ============
Header 1 Header 2
========== ============
Cell 1 Cell 2
Cell 3 Cell 4
========== ============Lists:
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3"make: command not found" on Windows:
# Install make for Windows or use sphinx-build directly
sphinx-build -b html . _build/htmlModule not found errors:
# Ensure you're in the docs directory
cd docs
# Rebuild the documentation
make clean
make htmlTheme not found:
# Install the theme
pip install sphinx-rtd-themeFor documentation issues:
The OneCite documentation is licensed under the MIT License. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |