Skip to content

Commit

Permalink
Quick hack bugfix for post
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Aug 16, 2023
1 parent 856c05f commit f3f75cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions docs/manual/ablog-quick-start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ABlog Quick Start
:category: Manual
:location: SF

This short walk through of blogging work flow assumes that you have already installed ABlog. If not, see :ref:`installation` guide.
This short walk through of blogging work flow assumes that you have already installed ABlog.
If not, see :ref:`installation` guide.

*Note that this post is a working draft. Feel free to revise it on GitHub.*

Expand All @@ -29,6 +30,8 @@ This command will ask you a few questions and create the following files:
* :file:`about.rst`, another non-post page example.


ABlog uses Alabaster_ theme by default.

Build and View
--------------

Expand Down Expand Up @@ -93,7 +96,7 @@ See :ref:`disqus-integration` for configuration options.
Analytics
---------

ABlog uses Alabaster_ theme by default. You can use theme options to set your `Google Analytics`__ identifier to enable tracking.
You can use theme options to set your `Google Analytics`__ identifier to enable tracking.

__ https://www.google.com/analytics/

Expand Down
6 changes: 5 additions & 1 deletion src/ablog/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,11 @@ def process_postlist(app, doctree, docname):
if item.options.get("external_link"):
ref["refuri"] = post.options.get("external_link")
else:
ref["refuri"] = app.builder.get_relative_uri(docname, item.docname)
refuri = app.builder.get_relative_uri(docname, item.docname)
# TODO: Work out why this is needed sometimes
if not refuri.endswith(".html"):
refuri = refuri + "index.html"
ref["refuri"] = refuri
ref["internal"] = True
ref["ids"] = []
ref["backrefs"] = []
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{39,310,311}{-sphinx5,-sphinx6,-sphinx7,-sphinxdev,-docs,-linkcheck}
py{39,310,311}{-sphinx5,-sphinx6,-sphinx7,-sphinx8,-sphinxdev,-docs,-linkcheck}
isolated_build = true

[testenv]
Expand All @@ -17,8 +17,8 @@ commands =
sphinx5: pip install -U "sphinx>=5.0,<6.0"
sphinx6: pip install -U "sphinx>=6.0,<7.0"
sphinx7: pip install -U "sphinx>=7.0,<8.0"
# TODO: Figure this out on azure
# sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
sphinx8: pip install -U "sphinx>=8.0,<9.0"
sphinxdev: pip install -U "git+https://repo.or.cz/docutils.git#egg=docutils&subdirectory=docutils"
sphinxdev: pip install -U "git+https://github.com/sphinx-doc/sphinx"
pip freeze --all --no-input
pytest -vvv -r a --pyargs ablog
Expand Down

0 comments on commit f3f75cf

Please sign in to comment.