Skip to content

Commit

Permalink
tests-sample-linkcode: adding sample set
Browse files Browse the repository at this point in the history
Signed-off-by: James Knight <[email protected]>
  • Loading branch information
jdknight committed Oct 7, 2024
1 parent 593b7f2 commit a7dff4d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/sample-sets/linkcode/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extensions = [
'sphinxcontrib.confluencebuilder',
'sphinx.ext.linkcode',
]

def linkcode_resolve(domain, info):
name = info.get('fullname', None)
if not name:
return None
return f'https://example.org/src/{name}'
8 changes: 8 additions & 0 deletions tests/sample-sets/linkcode/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
linkcode
========

.. module:: example

.. class:: ExampleModule

This is an example.
11 changes: 11 additions & 0 deletions tests/sample-sets/linkcode/tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tox]
package_root={toxinidir}{/}..{/}..{/}..

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

0 comments on commit a7dff4d

Please sign in to comment.