Skip to content

Commit 42362c3

Browse files
authored
Merge pull request #5 from sphinx-notes/rename-to-render
Rename to 'sphinxnotes.render'
2 parents 0312b4f + dcebfc4 commit 42362c3

File tree

27 files changed

+118
-451
lines changed

27 files changed

+118
-451
lines changed

.cruft.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"context": {
66
"cookiecutter": {
77
"namespace": "sphinxnotes",
8-
"name": "data",
9-
"full_name": "sphinxnotes-data",
8+
"name": "render",
9+
"full_name": "sphinxnotes.render",
1010
"author": "Shengyu Zhang",
11-
"description": "Use reStructuredText/markdown to define, constrain, render, and analyze data in Sphinx documentations",
11+
"description": "A framework to define, constrain, and render data in Sphinx documentation",
1212
"version": "1.0a0",
1313
"github_owner": "sphinx-notes",
1414
"github_repo": "data",
15-
"pypi_name": "sphinxnotes-data",
15+
"pypi_name": "sphinxnotes.render",
1616
"pypi_owner": "SilverRainZ",
1717
"is_python_project": true,
1818
"python_version": "3.12",

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
environment:
1212
name: pypi
13-
url: https://pypi.org/p/sphinxnotes-data
13+
url: https://pypi.org/p/sphinxnotes.render
1414
permissions:
1515
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1616
steps:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- uses: ncipollo/release-action@v1
1616
with:
1717
body: |
18-
Changelog: https://sphinx.silverrainz.me/data/changelog.html
18+
Changelog: https://sphinx.silverrainz.me/render/changelog.html

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
.. This file is generated from sphinx-notes/cookiecutter.
22
You need to consider modifying the TEMPLATE or modifying THIS FILE.
33
4-
================
5-
sphinxnotes-data
6-
================
4+
==================
5+
sphinxnotes.render
6+
==================
77

8-
.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/data/github-pages
9-
:target: https://sphinx.silverrainz.me/data
8+
.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/render/github-pages
9+
:target: https://sphinx.silverrainz.me/render
1010
:alt: Documentation Status
11-
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/data
11+
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/render
1212
:target: https://github.com/sphinx-notes/data/blob/master/LICENSE
1313
:alt: Open Source License
14-
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes-data.svg
15-
:target: https://pypi.python.org/pypi/sphinxnotes-data
14+
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes.render.svg
15+
:target: https://pypi.python.org/pypi/sphinxnotes.render
1616
:alt: PyPI Package
17-
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-data
18-
:target: https://pypistats.org/packages/sphinxnotes-data
17+
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes.render
18+
:target: https://pypistats.org/packages/sphinxnotes.render
1919
:alt: PyPI Package Downloads
2020

2121
|docs| |license| |pypi| |download|
2222

23-
Use reStructuredText/markdown to define, constrain, render, and analyze data in Sphinx documentations.
23+
A framework to define, constrain, and render data in Sphinx documentation.
2424

2525
.. INTRODUCTION START
2626
(MUST written in standard reStructuredText, without Sphinx stuff)
@@ -29,4 +29,4 @@ Use reStructuredText/markdown to define, constrain, render, and analyze data in
2929
3030
Please refer to Documentation_ for more details.
3131

32-
.. _Documentation: https://sphinx.silverrainz.me/data
32+
.. _Documentation: https://sphinx.silverrainz.me/render

docs/api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=============
2+
API Reference
3+
=============
4+
5+
.. note:: WIP
6+
7+
.. automodule:: sphinxnotes.render.pipeline

docs/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# -- Project information -----------------------------------------------------
1111

12-
project = 'sphinxnotes-data'
12+
project = 'sphinxnotes.render'
1313
author = 'Shengyu Zhang'
1414
copyright = "2025, " + author
1515

@@ -63,7 +63,7 @@
6363

6464
# The URL which points to the root of the HTML documentation.
6565
# It is used to indicate the location of document like canonical_url
66-
html_baseurl = 'https://sphinx.silverrainz.me/data'
66+
html_baseurl = 'https://sphinx.silverrainz.me/render'
6767

6868
html_logo = html_favicon = '_static/sphinx-notes.png'
6969

@@ -118,6 +118,9 @@
118118
import os
119119
import sys
120120
sys.path.insert(0, os.path.abspath('../src/sphinxnotes'))
121-
extensions.append('data')
121+
extensions.append('render')
122122

123123
# CUSTOM CONFIGURATION
124+
125+
_ = extensions.pop() # no need to load extension
126+
primary_domain = 'py'

docs/index.rst

Lines changed: 18 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
.. This file is generated from sphinx-notes/cookiecutter.
22
You need to consider modifying the TEMPLATE or modifying THIS FILE.
33
4-
================
5-
sphinxnotes-data
6-
================
4+
==================
5+
sphinxnotes.render
6+
==================
77

8-
.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/data/github-pages?label=docs
9-
:target: https://sphinx.silverrainz.me/data
8+
.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/render/github-pages?label=docs
9+
:target: https://sphinx.silverrainz.me/render
1010
:alt: Documentation Status
11-
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/data
11+
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/render
1212
:target: https://github.com/sphinx-notes/data/blob/master/LICENSE
1313
:alt: Open Source License
14-
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes-data.svg
15-
:target: https://pypistats.org/packages/sphinxnotes-data
14+
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes.render.svg
15+
:target: https://pypistats.org/packages/sphinxnotes.render
1616
:alt: PyPI Package
17-
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-data
18-
:target: https://pypi.python.org/pypi/sphinxnotes-data
17+
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes.render
18+
:target: https://pypi.python.org/pypi/sphinxnotes.render
1919
:alt: PyPI Package Downloads
2020
.. |github| image:: https://img.shields.io/badge/GitHub-181717?style=flat&logo=github&logoColor=white/
21-
:target: https://github.com/sphinx-notes/data
21+
:target: https://github.com/sphinx-notes/render
2222
:alt: GitHub Repository
2323

2424
|docs| |license| |pypi| |download| |github|
@@ -28,74 +28,23 @@ Introduction
2828

2929
.. INTRODUCTION START
3030
31-
.. warning::
31+
A framework to define, constrain, and render data in Sphinx documentation.
3232

33-
PRE-RELEAST, DO NOT use it.
34-
35-
This extension provides the underlying functionality for `sphinxnotes-any`__.
33+
.. seealso:: `sphinxnotes-any`__ and `sphinxnotes-data`__
3634

3735
__ https://sphinx.silverrainz.me/any/
38-
39-
.. data:template::
40-
:on: parsed
41-
42-
I am {{ name }}. I have the following attributes:
43-
44-
{% for k, v in attrs.items() %}
45-
:{{ k }}: {{ v }}
46-
{%- endfor %}
47-
48-
This document "{{ _doc.title }}" has {{ _doc.sections | length }} section(s).
49-
50-
{{ content }}
51-
52-
.. data:def:: Shengyu Zhang
53-
:github: SilverRainZ
54-
:homepage: https://silverrainz.me/
55-
56-
---
57-
58-
.. data:template::
59-
:debug:
60-
61-
builder: {{ _sphinx.builder.name }}
62-
63-
:data:def+foo:`bar`
36+
__ https://sphinx.silverrainz.me/data/
6437

6538
.. INTRODUCTION END
6639
6740
Getting Started
6841
===============
6942

70-
.. note::
71-
72-
We assume you already have a Sphinx documentation,
73-
if not, see `Getting Started with Sphinx`_.
74-
75-
76-
First, downloading extension from PyPI:
77-
78-
.. code-block:: console
79-
80-
$ pip install sphinxnotes-data
81-
82-
83-
Then, add the extension name to ``extensions`` configuration item in your
84-
:parsed_literal:`conf.py_`:
85-
86-
.. code-block:: python
87-
88-
extensions = [
89-
#
90-
'sphinxnotes.data',
91-
#
92-
]
93-
94-
.. _Getting Started with Sphinx: https://www.sphinx-doc.org/en/master/usage/quickstart.html
95-
.. _conf.py: https://www.sphinx-doc.org/en/master/usage/configuration.html
96-
9743
.. ADDITIONAL CONTENT START
9844
45+
This extension is not intended to be used directly by Sphinx user.
46+
It is for Sphinx extension developer, please refer to :doc:`api`.
47+
9948
.. ADDITIONAL CONTENT END
10049
10150
Contents
@@ -104,6 +53,7 @@ Contents
10453
.. toctree::
10554
:caption: Contents
10655

56+
api
10757
changelog
10858

10959
The Sphinx Notes Project

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
77

88
[project]
9-
name = "sphinxnotes-data"
10-
description = "Use reStructuredText/markdown to define, constrain, render, and analyze data in Sphinx documentations"
9+
name = "sphinxnotes.render"
10+
description = "A framework to define, constrain, and render data in Sphinx documentation"
1111
readme = "README.rst"
1212
license = "BSD-3-Clause"
1313
license-files = ["LICENSE"]
@@ -77,10 +77,10 @@ docs = [
7777
]
7878

7979
[project.urls]
80-
homepage = "https://sphinx.silverrainz.me/data"
81-
documentation = "https://sphinx.silverrainz.me/data"
80+
homepage = "https://sphinx.silverrainz.me/render"
81+
documentation = "https://sphinx.silverrainz.me/render"
8282
repository = "https://github.com/sphinx-notes/data"
83-
changelog = "https://sphinx.silverrainz.me/data/changelog.html"
83+
changelog = "https://sphinx.silverrainz.me/render/changelog.html"
8484
tracker = "https://github.com/sphinx-notes/data/issues"
8585

8686
[build-system]

src/sphinxnotes/data/examples/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)