Skip to content

Commit 9815dd0

Browse files
authored
Merge pull request #831 from sphinx-contrib/port-over-more-sample-sets
Port over more sample sets
2 parents d0d1381 + 2c6cbfd commit 9815dd0

File tree

53 files changed

+940
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+940
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extensions = [
2+
'sphinxcontrib.confluencebuilder',
3+
]
4+
5+
confluence_code_block_theme = 'Midnight'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
confluence-code-block-theme
2+
===========================
3+
4+
.. code-block:: python
5+
6+
def main():
7+
print 'Hello, world!'
8+
9+
if __name__ == '__main__':
10+
main()
11+
12+
.. code-block:: python
13+
:class: confluence-theme-FadeToGrey
14+
15+
def main():
16+
print 'Hello, world!'
17+
18+
if __name__ == '__main__':
19+
main()
20+
21+
.. code-block:: python
22+
:class: confluence-theme-eclipse
23+
24+
def main():
25+
print 'Hello, world!'
26+
27+
if __name__ == '__main__':
28+
main()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
package_root={toxinidir}{/}..{/}..{/}..
3+
4+
[testenv]
5+
commands =
6+
{envpython} -m tests.test_sample {posargs}
7+
setenv =
8+
PYTHONDONTWRITEBYTECODE=1
9+
TOX_INI_DIR={toxinidir}
10+
passenv = *
11+
use_develop = true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
extensions = [
2+
'sphinxcontrib.confluencebuilder',
3+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
confluence-status
2+
=================
3+
4+
:confluence_status:`First status`
5+
6+
:confluence_status:`Another status <yellow>`
7+
8+
:confluence_status:`Let's go! [green]`
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
package_root={toxinidir}{/}..{/}..{/}..
3+
4+
[testenv]
5+
commands =
6+
{envpython} -m tests.test_sample {posargs}
7+
setenv =
8+
PYTHONDONTWRITEBYTECODE=1
9+
TOX_INI_DIR={toxinidir}
10+
passenv = *
11+
use_develop = true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<mxfile host="Electron" modified="2021-11-12T04:34:56.282Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/14.6.13 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36" etag="VnDegXizWILD0XYqE30J" version="14.6.13" type="device"><diagram id="GZmhYcr-ncgRq0jOcgJH" name="Page-1">7Zddb9owFIZ/DZebyCfhslDadaJqVzRt3Z2JTWLViSPHKR+/fseJTUgCa7TCdlMJCfv18dfzHtswcKbJ5lagLL7nmLCBPcSbgXM9sG1rGATwpZRtpYx9LUSCYh1UCwu6I6anVguKSd4IlJwzSbOmGPI0JaFsaEgIvm6GrThrzpqhiHSERYhYV/1BsYwrNbBHtf6F0Cg2M1v+uGpJkAnWO8ljhPn6QHJmA2cqOJdVKdlMCVPwDJeq382J1v3CBEllnw6+fRM9JPz7fIaTn27m3v36tv2kR3lFrNAb1ouVW0NA8CLFRA0yHDiTdUwlWWQoVK1r8By0WCYMahYUu4syMxAhyeZA0ou8JTwhUmwhRLcaXttmdV3Tt4wWH5D3tYa04dF+4JoJFDSW44hoUXxdSm88et7hlD0+7YbPt30QgbWZKoZbRoGVcN4Gtayozpd7AYUvUcn6oZAwDNF6Xh0Jy9vT7aA8AvwkXWvYwnuEr38Eb3ApvPbbeGEUOO5EwTCgGS9w32x8Hy+nyctye+bjxYA5/fNRll//gJI9dptZZfWktE/Hs2Ny+2NaMbK5Um8FwCAp1kVIMpTnNFRpJ5GQXbnDkODOY/ImwUNCwz8REoQhSV+bExzDpud45BSmrhM5aCay47XI57wQIdG9Dt+R1kB2ayC7PRDAiojsDFS6uN/43xvrdYyd01x2zV3ThCF1jU5WPJUL3aLesDCmDM/RlheKMZgbvpjaJOaC7iAeGWdL7/XvEttvRCxUTz2mIOqifjR+Wy3pHm0agXOUS7MazhjKcrpk5spPACBNJ1xKnuigc9xkLd+CI0fUPZqA7oWOqN9x8k6SBBSr4yZsW5ZmCP5CppxxAXrKK3spYy0JMRqlUGVkpbopbhR+011pWXJ1BeZwI9I0mpcx126tPOnNK4lD3xUrD35MMSapspBLJNFyn0+ZSvUSjjeBDzCcDj97Aw8WPoW6Vdfho8KFnPIU9oJoaR2BZFgTlRD9fD59LLrmm0Pq9zPbxJ3d69Epr7vX8ofX7/Pas/+z18Epr50Pr8/s9Si4mNdQrf+cVo93/Rffmf0G</diagram></mxfile>

tests/sample-sets/drawio/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extensions = [
2+
'sphinxcontrib.confluencebuilder',
3+
'sphinxcontrib.drawio',
4+
]

tests/sample-sets/drawio/index.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
drawio
2+
======
3+
4+
.. drawio-figure:: box.drawio
5+
:align: left
6+
7+
----
8+
9+
.. drawio-image:: box.drawio
10+
:format: png
11+
:align: center
12+
13+
----
14+
15+
.. drawio-figure:: box.drawio
16+
:format: svg
17+
:align: right

tests/sample-sets/drawio/tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tox]
2+
package_root={toxinidir}{/}..{/}..{/}..
3+
4+
[testenv]
5+
deps =
6+
sphinxcontrib-drawio
7+
commands =
8+
{envpython} -m tests.test_sample {posargs}
9+
setenv =
10+
PYTHONDONTWRITEBYTECODE=1
11+
TOX_INI_DIR={toxinidir}
12+
passenv = *
13+
use_develop = true

0 commit comments

Comments
 (0)