docs: fixes several issues related to migrating to rst (#4213)

This commit is contained in:
Kevin Schlosser
2023-05-08 08:45:28 -06:00
committed by GitHub
parent 756c189519
commit 8c99b359d2
27 changed files with 1364 additions and 1367 deletions

View File

@@ -22,6 +22,6 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
See the [CHANGELOG](https://github.com/lvgl/lvgl/blob/master/docs/CHANGELOG.md)
See the `CHANGELOG <https://github.com/lvgl/lvgl/blob/master/docs/CHANGELOG.rst>`__
draft: false
prerelease: false

File diff suppressed because it is too large Load Diff

View File

@@ -18,15 +18,10 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import subprocess
import sys
sys.path.insert(0, os.path.abspath('./_ext'))
# from subprocess import PIPE, Popen
# import recommonmark
# from recommonmark.transform import AutoStructify
from sphinx.builders.html import StandaloneHTMLBuilder
# -- General configuration ------------------------------------------------
@@ -43,8 +38,6 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
# 'recommonmark',
# 'sphinx_markdown_tables',
'breathe',
'sphinx_sitemap',
'lv_example',
@@ -65,7 +58,7 @@ highlight_language = 'c'
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_suffix = ['.rst']# , '.md']
source_suffix = ['.rst']
# The master toctree document.
@@ -266,7 +259,7 @@ StandaloneHTMLBuilder.supported_image_types = [
smartquotes = False
_, repo_commit_hash = subprocess.getstatusoutput("git rev-parse HEAD")
repo_commit_hash = os.environ['LVGL_GITCOMMIT']
# Example configuration for intersphinx: refer to the Python standard library.

View File

@@ -35,6 +35,5 @@ Example
API
---
:ref:`lv_barcode`
:ref:`code128`

View File

@@ -42,4 +42,3 @@ Example
API
---
:ref:`lv_bmp`

View File

@@ -37,4 +37,3 @@ Example
API
---
:ref:`lv_ffmpeg`

View File

@@ -105,8 +105,7 @@ Learn more
API
---
:ref:`lv_freetype`
:ref:`ftoption`
:ref:`ftmodule`

View File

@@ -32,4 +32,3 @@ number of actual reads from the storage.
API
***
:ref:`lv_fsdrv`

View File

@@ -50,6 +50,5 @@ Example
API
---
:ref:`lv_gif`
:ref:`gifdec`

View File

@@ -26,6 +26,5 @@ Example
API
---
:ref:`lv_png`
:ref:`lodepng`

View File

@@ -32,6 +32,5 @@ Example
API
---
:ref:`lv_qrcode`
:ref:`qrcodegen`

View File

@@ -273,5 +273,3 @@ Example
API
---
:ref:`lv_rlottie`

View File

@@ -39,8 +39,7 @@ Example
API
---
:ref:`lv_tiny_ttf`
:ref:`stb_rect_pack`
:ref:`stb_truetype_htcw`

View File

@@ -296,4 +296,3 @@ Example
API
---
:ref:`lv_file_explorer`

View File

@@ -77,4 +77,3 @@ Example
API
---
:ref:`lv_fragment`

View File

@@ -64,4 +64,3 @@ Example
API
---
:ref:`lv_gridnav`

View File

@@ -311,4 +311,3 @@ Example
API
---
:ref:`lv_ime_pinyin`

View File

@@ -26,5 +26,3 @@ Example
API
---
:ref:`lv_imgfont`

View File

@@ -37,4 +37,3 @@ Example
API
---
:ref:`lv_monkey`

View File

@@ -149,5 +149,3 @@ Example
API
---
:ref:`lv_msg`

View File

@@ -63,4 +63,3 @@ Example
API
---
:ref:`lv_snapshot`

View File

@@ -15,6 +15,3 @@ API
:ref:`lv_draw_vglite_rect`
:ref:`lv_vglite_buf`
:ref:`lv_vglite_utils`

View File

@@ -49,3 +49,5 @@ Example
API
***
:ref:`lv_animimg`

View File

@@ -167,3 +167,5 @@ Example
API
***
:ref:`lv_arc`

View File

@@ -80,3 +80,5 @@ Example
API
***
:ref:`lv_bar`

View File

@@ -1,106 +1,122 @@
{{#each releases}}
## [{{title}}]({{href}}) {{niceDate}}
`{{title}} <{{href}}>`__ {{niceDate}}
---------------------------------------------------------------------------------------------------
Breaking Changes
~~~~~~~~~~~~~~~~
### Breaking Changes
{{#commit-list merges heading='' message='BREAKING CHANGE'}}
- :warning: {{message}} [`{{id}}`]({{href}})
- .. warning: {{message}} `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='BREAKING CHANGE'}}
- :warning: {{subject}} [`{{shorthash}}`]({{href}})
- .. warning: {{subject}} `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='BREAKING CHANGE'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
### Architectural
Architectural
~~~~~~~~~~~~~
{{#commit-list merges heading='' message='^arch' exclude='BREAKING CHANGE'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^arch' exclude='BREAKING CHANGE'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^arch' exclude='BREAKING CHANGE'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
### New Features
New Features
~~~~~~~~~~~~
{{#commit-list merges heading='' message='^feat' exclude='BREAKING CHANGE'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^feat' exclude='BREAKING CHANGE'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^feat' exclude='BREAKING CHANGE'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
Performance
~~~~~~~~~~~
### Performance
{{#commit-list merges heading='' message='^perf' exclude='BREAKING CHANGE'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^perf' exclude='BREAKING CHANGE'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^perf' exclude='BREAKING CHANGE'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
### Fixes
Fixes
~~~~~
{{#commit-list merges heading='' message='^fix' exclude='(^fix conflict|^fix warning|BREAKING CHANGE)'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^fix' exclude='(^fix conflict|^fix warning|BREAKING CHANGE)'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^fix' exclude='(^fix conflict|^fix warning|BREAKING CHANGE)'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
Examples
~~~~~~~~
### Examples
{{#commit-list merges heading='' message='^example'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <({{href}})>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^example'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^example'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
Docs
~~~~
### Docs
{{#commit-list merges heading='' message='^docs'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='^docs'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash}} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='^docs'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
### CI and tests
CI and tests
~~~~~~~~~~~~
{{#commit-list merges heading='' message='(^ci|^test)'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id}} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' message='(^ci|^test)'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash }} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' message='(^ci|^test)'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
### Others
Others
~~~~~~
{{#commit-list merges heading='' exclude='(^fix|^feat|^perf|^docs|^example|^ci|^test)'}}
- {{message}} [`{{id}}`]({{href}})
- **{{message}}** `{{id }} <{{href}}>`__
{{/commit-list}}
{{#commit-list commits heading='' exclude='(^fix|^feat|^perf|^docs|^example|^ci|^test)'}}
- {{subject}} [`{{shorthash}}`]({{href}})
- **{{subject}}** `{{shorthash }} <{{href}}>`__
{{/commit-list}}
{{#commit-list fixes heading='' exclude='(^fix|^feat|^perf|^docs|^example|^ci|^test)'}}
- {{commit.subject}} [`{{commit.shorthash}}`]({{commit.href}})
- **{{commit.subject}}** `{{commit.shorthash}} <{{commit.href}}>`__
{{/commit-list}}
{{/each}}

View File

@@ -12,4 +12,4 @@
# changelog-gen v5.7.0
# changelog-gen v6.0.0
auto-changelog -t changelog-template.hbs -l false --latest-version $1 --unreleased-only --tag-pattern ^v[0-9]+.[0-9]+.[0-9]+$ -o CHANGELOG_LAST.md
auto-changelog -t changelog-template.hbs -l false --latest-version $1 --unreleased-only --tag-pattern ^v[0-9]+.[0-9]+.[0-9]+$ -o CHANGELOG_LAST.rst