Skip to content

docs: API docs - #58

Merged
jkowalleck merged 15 commits into
mainfrom
docs/readthedocs
Jul 21, 2026
Merged

jkowalleck merged 15 commits into
mainfrom
docs/readthedocs

Conversation

@jkowalleck

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck added the documentation Improvements or additions to documentation label Jul 21, 2026
@jkowalleck
jkowalleck requested a review from Copilot July 21, 2026 11:10
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR sets up Sphinx/Read the Docs documentation for the project and improves in-repo documentation/typing for the RFC 3987 grammar helpers.

Changes:

  • Add Read the Docs configuration and a Sphinx documentation scaffold (conf, index, requirements, gitignore).
  • Expand docstrings and typing in syntax_helpers.py, and add clarifying comments in the Lark grammar.
  • Rework public exports by introducing a package-level __all__.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/rfc3987_syntax2/syntax_rfc3987.lark Adds grammar provenance and clarifies a helper token comment.
src/rfc3987_syntax2/syntax_helpers.py Improves typing/docstrings and refactors validator/export-related code paths.
src/rfc3987_syntax2/init.py Adds package __all__ and re-exports helper APIs.
docs/requirements.txt Adds pinned-ish doc build dependencies for Sphinx/RTD.
docs/index.rst Includes README via MyST and defines a toctree root.
docs/conf.py Configures Sphinx + AutoAPI + MyST for the package.
docs/.gitignore Ignores Sphinx build artifacts.
.readthedocs.yaml Adds RTD build configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/rfc3987_syntax2/syntax_helpers.py Outdated
Comment thread src/rfc3987_syntax2/syntax_helpers.py Outdated
Comment thread src/rfc3987_syntax2/syntax_helpers.py Outdated
Comment thread src/rfc3987_syntax2/__init__.py Outdated
Comment thread .readthedocs.yaml
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

.readthedocs.yaml:11

  • Read the Docs config expects an explicit Ubuntu release (e.g. ubuntu-24.04) and a supported Python toolchain version; ubuntu-lts-latest is not a documented build.os value, and python: "3.14" is not listed in the RTD config examples. This is likely to fail config validation and break the docs build.
build:
  os: ubuntu-lts-latest
  tools:
    python: "3.14"

Comment thread src/rfc3987_syntax2/syntax_helpers.py Outdated
Comment thread src/rfc3987_syntax2/syntax_helpers.py
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/rfc3987_syntax2/syntax_helpers.py:124

  • The docstring references :func:check, but no such function exists in this module. This will create broken cross-references in generated docs; it likely meant :func:is_valid_syntax.
"""Top-level RFC 3987 parser start terms accepted by :func:`parse` and :func:`check`.

Comment thread docs/index.rst
Comment thread CHANGELOG.md Outdated
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck changed the title Docs/readthedocs docs: API docs Jul 21, 2026
@jkowalleck
jkowalleck merged commit d044ad9 into main Jul 21, 2026
21 checks passed
@jkowalleck
jkowalleck deleted the docs/readthedocs branch July 21, 2026 16:00
@jkowalleck

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants