Adding upstream version 0.11.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f89f073565
commit
2f2c7f3767
146 changed files with 9553 additions and 0 deletions
16
roots/test-build/conf.py
Normal file
16
roots/test-build/conf.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
extensions = ["ablog"]
|
||||
|
||||
# Enable Atom feed generation
|
||||
blog_baseurl = "https://blog.example.com/"
|
||||
# Include full post in feeds
|
||||
blog_feed_fulltext = True
|
||||
# Add a social media Atom feed
|
||||
blog_feed_templates = {
|
||||
# Use defaults, no templates
|
||||
"atom": {},
|
||||
# Create content text suitable posting to micro-bogging
|
||||
"social": {
|
||||
# Format tags as hashtags and append to the content
|
||||
"content": "{{ title }}{% for tag in post.tags %}" " #{{ tag.name|trim()|replace(' ', '') }}" "{% endfor %}",
|
||||
},
|
||||
}
|
5
roots/test-build/foo-empty-post.rst
Normal file
5
roots/test-build/foo-empty-post.rst
Normal file
|
@ -0,0 +1,5 @@
|
|||
.. post:: 2021-03-23
|
||||
|
||||
##############
|
||||
Foo Empty Post
|
||||
##############
|
2
roots/test-build/index.rst
Normal file
2
roots/test-build/index.rst
Normal file
|
@ -0,0 +1,2 @@
|
|||
test-build
|
||||
============
|
11
roots/test-build/post.rst
Normal file
11
roots/test-build/post.rst
Normal file
|
@ -0,0 +1,11 @@
|
|||
.. post:: 2022-12-01
|
||||
:tags: Foo Tag, BarTag
|
||||
|
||||
Foo Post Title
|
||||
==============
|
||||
|
||||
Foo post description `with link`_.
|
||||
|
||||
Foo post content.
|
||||
|
||||
.. _`with link`: https://example.com
|
9
roots/test-canonical/canonical.rst
Normal file
9
roots/test-canonical/canonical.rst
Normal file
|
@ -0,0 +1,9 @@
|
|||
.. post:: 2021-12-01
|
||||
:tags: Canonical
|
||||
:canonical_link: https://canonical.example.org/foo.html
|
||||
|
||||
Canonical post
|
||||
=============
|
||||
|
||||
This post will get generated, but its [canonical link](https://datatracker.ietf.org/doc/html/rfc6596)
|
||||
in the header will point to ``canonical_link``.
|
18
roots/test-canonical/conf.py
Normal file
18
roots/test-canonical/conf.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
extensions = ["ablog"]
|
||||
|
||||
# Enable Atom feed generation
|
||||
blog_baseurl = "https://blog.example.com/"
|
||||
# Include full post in feeds
|
||||
blog_feed_fulltext = True
|
||||
# Add a social media Atom feed
|
||||
blog_feed_templates = {
|
||||
# Use defaults, no templates
|
||||
"atom": {},
|
||||
# Create content text suitable posting to micro-bogging
|
||||
"social": {
|
||||
# Format tags as hashtags and append to the content
|
||||
"content": "{{ title }}{% for tag in post.tags %}" " #{{ tag.name|trim()|replace(' ', '') }}" "{% endfor %}",
|
||||
},
|
||||
}
|
||||
# Sphinx creates canonical links pointing to this base URL by default
|
||||
html_baseurl = blog_baseurl
|
2
roots/test-canonical/index.rst
Normal file
2
roots/test-canonical/index.rst
Normal file
|
@ -0,0 +1,2 @@
|
|||
test-external
|
||||
=============
|
11
roots/test-canonical/post.rst
Normal file
11
roots/test-canonical/post.rst
Normal file
|
@ -0,0 +1,11 @@
|
|||
.. post:: 2022-12-01
|
||||
:tags: Foo Tag, BarTag
|
||||
|
||||
Foo Post Title
|
||||
==============
|
||||
|
||||
Foo post description `with link`_.
|
||||
|
||||
Foo post content.
|
||||
|
||||
.. _`with link`: https://example.com
|
4
roots/test-canonical/postlist.rst
Normal file
4
roots/test-canonical/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
========
|
||||
|
||||
.. postlist::
|
16
roots/test-external/conf.py
Normal file
16
roots/test-external/conf.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
extensions = ["ablog"]
|
||||
|
||||
# Enable Atom feed generation
|
||||
blog_baseurl = "https://blog.example.com/"
|
||||
# Include full post in feeds
|
||||
blog_feed_fulltext = True
|
||||
# Add a social media Atom feed
|
||||
blog_feed_templates = {
|
||||
# Use defaults, no templates
|
||||
"atom": {},
|
||||
# Create content text suitable posting to micro-bogging
|
||||
"social": {
|
||||
# Format tags as hashtags and append to the content
|
||||
"content": "{{ title }}{% for tag in post.tags %}" " #{{ tag.name|trim()|replace(' ', '') }}" "{% endfor %}",
|
||||
},
|
||||
}
|
8
roots/test-external/external.rst
Normal file
8
roots/test-external/external.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
.. post:: 2021-12-01
|
||||
:tags: External
|
||||
:external_link: https://www.sphinx-doc.org/en/master/
|
||||
|
||||
External post
|
||||
=============
|
||||
|
||||
This text will be in auto-generated post previews, but links to the post will direct to ``external_link``.
|
2
roots/test-external/index.rst
Normal file
2
roots/test-external/index.rst
Normal file
|
@ -0,0 +1,2 @@
|
|||
test-external
|
||||
=============
|
4
roots/test-external/postlist.rst
Normal file
4
roots/test-external/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
========
|
||||
|
||||
.. postlist::
|
1
roots/test-parallel/conf.py
Normal file
1
roots/test-parallel/conf.py
Normal file
|
@ -0,0 +1 @@
|
|||
extensions = ["ablog"]
|
7
roots/test-parallel/index.rst
Normal file
7
roots/test-parallel/index.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
test-postlist
|
||||
===============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
postlist
|
4
roots/test-parallel/post1.rst
Normal file
4
roots/test-parallel/post1.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. post:: 2020-12-01
|
||||
|
||||
post 1
|
||||
=======
|
4
roots/test-parallel/post2.rst
Normal file
4
roots/test-parallel/post2.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. post:: 2020-12-01
|
||||
|
||||
post 2
|
||||
=======
|
4
roots/test-parallel/post3.rst
Normal file
4
roots/test-parallel/post3.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. post:: 2020-12-01
|
||||
|
||||
post 3
|
||||
=======
|
4
roots/test-parallel/post4.rst
Normal file
4
roots/test-parallel/post4.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. post:: 2020-12-01
|
||||
|
||||
post 4
|
||||
=======
|
4
roots/test-parallel/postlist.rst
Normal file
4
roots/test-parallel/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
==========
|
||||
|
||||
.. postlist::
|
1
roots/test-postlist/conf.py
Normal file
1
roots/test-postlist/conf.py
Normal file
|
@ -0,0 +1 @@
|
|||
extensions = ["ablog"]
|
7
roots/test-postlist/index.rst
Normal file
7
roots/test-postlist/index.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
test-postlist
|
||||
===============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
postlist
|
4
roots/test-postlist/post.rst
Normal file
4
roots/test-postlist/post.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. post:: 2020-12-01
|
||||
|
||||
post
|
||||
=======
|
4
roots/test-postlist/postlist.rst
Normal file
4
roots/test-postlist/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
==========
|
||||
|
||||
.. postlist::
|
1
roots/test-templates/_templates/ablog/postcard.html
Normal file
1
roots/test-templates/_templates/ablog/postcard.html
Normal file
|
@ -0,0 +1 @@
|
|||
custom postcard.html
|
|
@ -0,0 +1 @@
|
|||
custom postcard.html from theme
|
5
roots/test-templates/_themes/test_theme/theme.toml
Normal file
5
roots/test-templates/_themes/test_theme/theme.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
[theme]
|
||||
inherit = "basic"
|
||||
|
||||
[options]
|
||||
ablog_inject_templates_after_theme = true
|
1
roots/test-templates/conf.py
Normal file
1
roots/test-templates/conf.py
Normal file
|
@ -0,0 +1 @@
|
|||
extensions = ["ablog"]
|
7
roots/test-templates/index.rst
Normal file
7
roots/test-templates/index.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
test-postlist
|
||||
===============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
postlist
|
5
roots/test-templates/post.rst
Normal file
5
roots/test-templates/post.rst
Normal file
|
@ -0,0 +1,5 @@
|
|||
.. post:: 2020-12-01
|
||||
:author: Durden
|
||||
|
||||
post
|
||||
=======
|
4
roots/test-templates/postlist.rst
Normal file
4
roots/test-templates/postlist.rst
Normal file
|
@ -0,0 +1,4 @@
|
|||
postlist
|
||||
==========
|
||||
|
||||
.. postlist::
|
Loading…
Add table
Add a link
Reference in a new issue