Skip to content

Commit

Permalink
tests-sample-raw-html: adding raw html sample set
Browse files Browse the repository at this point in the history
Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Jul 14, 2023
1 parent e93a3cc commit a1e5967
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/sample-sets/raw-html/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extensions = [
'myst_parser',
'sphinxcontrib.confluencebuilder',
]

# Raw injection:
confluence_permit_raw_html = True

# Using macro:
# confluence_permit_raw_html = 'html'
15 changes: 15 additions & 0 deletions tests/sample-sets/raw-html/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
raw-html
========

.. toctree::
:maxdepth: 1

second

----

Some raw HTML:

.. raw:: html

<a href="https://www.sphinx-doc.org/">sphinx-doc.org</a>
11 changes: 11 additions & 0 deletions tests/sample-sets/raw-html/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
second
======

Some more HTML in Markdown:

----

<section id="my-nifty-title">
<h1>My nifty title</h1>
<p>Some <strong>text</strong>!</p>
</section>
13 changes: 13 additions & 0 deletions tests/sample-sets/raw-html/tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox]
package_root={toxinidir}{/}..{/}..{/}..

[testenv]
deps =
myst-parser
commands =
{envpython} -m tests.test_sample {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
TOX_INI_DIR={toxinidir}
passenv = *
use_develop = true

0 comments on commit a1e5967

Please sign in to comment.