-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skipping code blocks and fixing docs build. (#47)
While working on another PR I ran into this bug on my test website. I had a test document with only an HTML code block and found out unescaped HTML was added to the meta tag: ```html <meta property="og:description" content="<meta property="og:image" content="_images/normal.jpg" /> <img alt="_images/normal.jpg" src="_images/normal.jpg" />" /> <meta property="og:image" content="_images/normal.jpg" /> ``` Fixing this by skipping literal blocks. Also fixed docs build. I was getting the exception: `AttributeError: 'Values' object has no attribute 'section_self_link'` This was caused by sphinx-doc/sphinx#9825. Updating dependencies fixed the issue.
- Loading branch information
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
myst-parser==0.13.0 | ||
furo==2020.12.30b24 | ||
sphinx==3.4.0 | ||
myst-parser==0.15.2 | ||
furo==2021.11.12.1 | ||
sphinx==4.2.0 | ||
./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extensions = ["sphinxext.opengraph"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
html_theme = "basic" | ||
|
||
ogp_site_url = "http://example.org/" | ||
ogp_description_length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This text should be included. | ||
|
||
.. code-block:: html | ||
|
||
<p> This text should be skipped. </p> | ||
|
||
This text should also be included. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters