summaryrefslogtreecommitdiffstats
path: root/roots
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-12 11:57:01 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-12 11:57:01 +0100
commit8e29081b9d01c2e1177adb00224cc04ee4dd7642 (patch)
treec6b8ad3aab9eacab43fa63160cfbdf2adc1371b5 /roots
parentInitial commit. (diff)
downloadablog-8e29081b9d01c2e1177adb00224cc04ee4dd7642.tar.xz
ablog-8e29081b9d01c2e1177adb00224cc04ee4dd7642.zip
Adding upstream version 0.11.12.upstream/0.11.12upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'roots')
-rw-r--r--roots/test-build/conf.py16
-rw-r--r--roots/test-build/foo-empty-post.rst5
-rw-r--r--roots/test-build/index.rst2
-rw-r--r--roots/test-build/post.rst11
-rw-r--r--roots/test-canonical/canonical.rst9
-rw-r--r--roots/test-canonical/conf.py18
-rw-r--r--roots/test-canonical/index.rst2
-rw-r--r--roots/test-canonical/post.rst11
-rw-r--r--roots/test-canonical/postlist.rst4
-rw-r--r--roots/test-external/conf.py16
-rw-r--r--roots/test-external/external.rst8
-rw-r--r--roots/test-external/index.rst2
-rw-r--r--roots/test-external/postlist.rst4
-rw-r--r--roots/test-parallel/conf.py1
-rw-r--r--roots/test-parallel/index.rst7
-rw-r--r--roots/test-parallel/post1.rst4
-rw-r--r--roots/test-parallel/post2.rst4
-rw-r--r--roots/test-parallel/post3.rst4
-rw-r--r--roots/test-parallel/post4.rst4
-rw-r--r--roots/test-parallel/postlist.rst4
-rw-r--r--roots/test-postlist/conf.py1
-rw-r--r--roots/test-postlist/index.rst7
-rw-r--r--roots/test-postlist/post.rst4
-rw-r--r--roots/test-postlist/postlist.rst4
-rw-r--r--roots/test-templates/_templates/ablog/postcard.html1
-rw-r--r--roots/test-templates/_themes/test_theme/ablog/postcard.html1
-rw-r--r--roots/test-templates/_themes/test_theme/theme.toml5
-rw-r--r--roots/test-templates/conf.py1
-rw-r--r--roots/test-templates/index.rst7
-rw-r--r--roots/test-templates/post.rst5
-rw-r--r--roots/test-templates/postlist.rst4
31 files changed, 176 insertions, 0 deletions
diff --git a/roots/test-build/conf.py b/roots/test-build/conf.py
new file mode 100644
index 0000000..a375b9a
--- /dev/null
+++ b/roots/test-build/conf.py
@@ -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 %}",
+ },
+}
diff --git a/roots/test-build/foo-empty-post.rst b/roots/test-build/foo-empty-post.rst
new file mode 100644
index 0000000..e2221df
--- /dev/null
+++ b/roots/test-build/foo-empty-post.rst
@@ -0,0 +1,5 @@
+.. post:: 2021-03-23
+
+##############
+Foo Empty Post
+##############
diff --git a/roots/test-build/index.rst b/roots/test-build/index.rst
new file mode 100644
index 0000000..b063e42
--- /dev/null
+++ b/roots/test-build/index.rst
@@ -0,0 +1,2 @@
+test-build
+============
diff --git a/roots/test-build/post.rst b/roots/test-build/post.rst
new file mode 100644
index 0000000..46ac292
--- /dev/null
+++ b/roots/test-build/post.rst
@@ -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
diff --git a/roots/test-canonical/canonical.rst b/roots/test-canonical/canonical.rst
new file mode 100644
index 0000000..c5e706b
--- /dev/null
+++ b/roots/test-canonical/canonical.rst
@@ -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``.
diff --git a/roots/test-canonical/conf.py b/roots/test-canonical/conf.py
new file mode 100644
index 0000000..a515a6e
--- /dev/null
+++ b/roots/test-canonical/conf.py
@@ -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
diff --git a/roots/test-canonical/index.rst b/roots/test-canonical/index.rst
new file mode 100644
index 0000000..4a0bb51
--- /dev/null
+++ b/roots/test-canonical/index.rst
@@ -0,0 +1,2 @@
+test-external
+=============
diff --git a/roots/test-canonical/post.rst b/roots/test-canonical/post.rst
new file mode 100644
index 0000000..46ac292
--- /dev/null
+++ b/roots/test-canonical/post.rst
@@ -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
diff --git a/roots/test-canonical/postlist.rst b/roots/test-canonical/postlist.rst
new file mode 100644
index 0000000..d944b64
--- /dev/null
+++ b/roots/test-canonical/postlist.rst
@@ -0,0 +1,4 @@
+postlist
+========
+
+.. postlist::
diff --git a/roots/test-external/conf.py b/roots/test-external/conf.py
new file mode 100644
index 0000000..a375b9a
--- /dev/null
+++ b/roots/test-external/conf.py
@@ -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 %}",
+ },
+}
diff --git a/roots/test-external/external.rst b/roots/test-external/external.rst
new file mode 100644
index 0000000..c3ef0f7
--- /dev/null
+++ b/roots/test-external/external.rst
@@ -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``.
diff --git a/roots/test-external/index.rst b/roots/test-external/index.rst
new file mode 100644
index 0000000..4a0bb51
--- /dev/null
+++ b/roots/test-external/index.rst
@@ -0,0 +1,2 @@
+test-external
+=============
diff --git a/roots/test-external/postlist.rst b/roots/test-external/postlist.rst
new file mode 100644
index 0000000..d944b64
--- /dev/null
+++ b/roots/test-external/postlist.rst
@@ -0,0 +1,4 @@
+postlist
+========
+
+.. postlist::
diff --git a/roots/test-parallel/conf.py b/roots/test-parallel/conf.py
new file mode 100644
index 0000000..9fefc4c
--- /dev/null
+++ b/roots/test-parallel/conf.py
@@ -0,0 +1 @@
+extensions = ["ablog"]
diff --git a/roots/test-parallel/index.rst b/roots/test-parallel/index.rst
new file mode 100644
index 0000000..6512aad
--- /dev/null
+++ b/roots/test-parallel/index.rst
@@ -0,0 +1,7 @@
+test-postlist
+===============
+
+.. toctree::
+ :maxdepth: 1
+
+ postlist
diff --git a/roots/test-parallel/post1.rst b/roots/test-parallel/post1.rst
new file mode 100644
index 0000000..102e2c3
--- /dev/null
+++ b/roots/test-parallel/post1.rst
@@ -0,0 +1,4 @@
+.. post:: 2020-12-01
+
+post 1
+=======
diff --git a/roots/test-parallel/post2.rst b/roots/test-parallel/post2.rst
new file mode 100644
index 0000000..77a7860
--- /dev/null
+++ b/roots/test-parallel/post2.rst
@@ -0,0 +1,4 @@
+.. post:: 2020-12-01
+
+post 2
+=======
diff --git a/roots/test-parallel/post3.rst b/roots/test-parallel/post3.rst
new file mode 100644
index 0000000..903b3da
--- /dev/null
+++ b/roots/test-parallel/post3.rst
@@ -0,0 +1,4 @@
+.. post:: 2020-12-01
+
+post 3
+=======
diff --git a/roots/test-parallel/post4.rst b/roots/test-parallel/post4.rst
new file mode 100644
index 0000000..04f19d1
--- /dev/null
+++ b/roots/test-parallel/post4.rst
@@ -0,0 +1,4 @@
+.. post:: 2020-12-01
+
+post 4
+=======
diff --git a/roots/test-parallel/postlist.rst b/roots/test-parallel/postlist.rst
new file mode 100644
index 0000000..a3d282d
--- /dev/null
+++ b/roots/test-parallel/postlist.rst
@@ -0,0 +1,4 @@
+postlist
+==========
+
+.. postlist::
diff --git a/roots/test-postlist/conf.py b/roots/test-postlist/conf.py
new file mode 100644
index 0000000..9fefc4c
--- /dev/null
+++ b/roots/test-postlist/conf.py
@@ -0,0 +1 @@
+extensions = ["ablog"]
diff --git a/roots/test-postlist/index.rst b/roots/test-postlist/index.rst
new file mode 100644
index 0000000..6512aad
--- /dev/null
+++ b/roots/test-postlist/index.rst
@@ -0,0 +1,7 @@
+test-postlist
+===============
+
+.. toctree::
+ :maxdepth: 1
+
+ postlist
diff --git a/roots/test-postlist/post.rst b/roots/test-postlist/post.rst
new file mode 100644
index 0000000..ce87887
--- /dev/null
+++ b/roots/test-postlist/post.rst
@@ -0,0 +1,4 @@
+.. post:: 2020-12-01
+
+post
+=======
diff --git a/roots/test-postlist/postlist.rst b/roots/test-postlist/postlist.rst
new file mode 100644
index 0000000..a3d282d
--- /dev/null
+++ b/roots/test-postlist/postlist.rst
@@ -0,0 +1,4 @@
+postlist
+==========
+
+.. postlist::
diff --git a/roots/test-templates/_templates/ablog/postcard.html b/roots/test-templates/_templates/ablog/postcard.html
new file mode 100644
index 0000000..834f8dd
--- /dev/null
+++ b/roots/test-templates/_templates/ablog/postcard.html
@@ -0,0 +1 @@
+custom postcard.html
diff --git a/roots/test-templates/_themes/test_theme/ablog/postcard.html b/roots/test-templates/_themes/test_theme/ablog/postcard.html
new file mode 100644
index 0000000..59d4c35
--- /dev/null
+++ b/roots/test-templates/_themes/test_theme/ablog/postcard.html
@@ -0,0 +1 @@
+custom postcard.html from theme
diff --git a/roots/test-templates/_themes/test_theme/theme.toml b/roots/test-templates/_themes/test_theme/theme.toml
new file mode 100644
index 0000000..dae9fb3
--- /dev/null
+++ b/roots/test-templates/_themes/test_theme/theme.toml
@@ -0,0 +1,5 @@
+[theme]
+inherit = "basic"
+
+[options]
+ablog_inject_templates_after_theme = true
diff --git a/roots/test-templates/conf.py b/roots/test-templates/conf.py
new file mode 100644
index 0000000..9fefc4c
--- /dev/null
+++ b/roots/test-templates/conf.py
@@ -0,0 +1 @@
+extensions = ["ablog"]
diff --git a/roots/test-templates/index.rst b/roots/test-templates/index.rst
new file mode 100644
index 0000000..6512aad
--- /dev/null
+++ b/roots/test-templates/index.rst
@@ -0,0 +1,7 @@
+test-postlist
+===============
+
+.. toctree::
+ :maxdepth: 1
+
+ postlist
diff --git a/roots/test-templates/post.rst b/roots/test-templates/post.rst
new file mode 100644
index 0000000..01c64d2
--- /dev/null
+++ b/roots/test-templates/post.rst
@@ -0,0 +1,5 @@
+.. post:: 2020-12-01
+ :author: Durden
+
+post
+=======
diff --git a/roots/test-templates/postlist.rst b/roots/test-templates/postlist.rst
new file mode 100644
index 0000000..a3d282d
--- /dev/null
+++ b/roots/test-templates/postlist.rst
@@ -0,0 +1,4 @@
+postlist
+==========
+
+.. postlist::