2929Example: 
3030	>>> import conf 
3131	>>> conf.project 
32- 	'python-repo ' 
32+ 	'pythonrepo ' 
3333	>>> conf.version 
34- 	'1.1 ' 
34+ 	'2.0 ' 
3535""" 
3636
3737import  sys 
4141from  urllib .parse  import  quote 
4242
4343# If you have custom documentation extensions, add them here 
44- sys . path . insert ( 0 ,  os . path . abspath ( ".." )) 
44+ import   docs . utils 
4545from  docs .utils  import  (
4646	_validate_git_ref ,  # noqa 
4747	slugify_header ,  # noqa 
6464# add these directories to sys.path here. If the directory is relative to the 
6565# documentation root, use os.path.abspath to make it absolute, like shown here. 
6666
67+ sys .path .insert (0 , os .path .abspath (".." ))
6768# sys.path.insert(1, os.path.abspath("tests"))  # uncomment to add tests docs 
6869sys .path .insert (1 , os .path .abspath ("pythonrepo" ))
6970
151152# built documents. 
152153# 
153154# The short X.Y version. 
154- version  =  "v2 .0" 
155+ version  =  "2 .0" 
155156# The full version, including alpha/beta/rc tags. 
156- release  =  "v2.0 .0b0"
157+ release  =  f"v$ { version } 
157158
158159# The language for content autogenerated by Sphinx. Refer to documentation 
159160# for a list of supported languages. 
258259# html_title = None 
259260
260261# A shorter title for the navigation bar.  Default is the same as html_title. 
261- html_short_title  =    "Project Docs" 
262+ html_short_title  =  "Project Docs" 
262263
263264# The name of an image file (relative to this directory) to place at the top 
264265# of the sidebar. 
472473
473474suffix : str  =  "/issues/%s" 
474475
475- extlinks : dict [str ,tuple ] =  {
476+ extlinks : dict [str ,  tuple ] =  {
476477	"issue" : (
477478		f"{ linkcode_url_prefix } { suffix }  ,
478479		"issue #%s" 
481482
482483# try to link with official python3 documentation. 
483484# see https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html for more 
484- intersphinx_mapping  =  sanitize_intersphinx_mapping (
485+ intersphinx_mapping :  dict [ str ,  tuple ]  =  sanitize_intersphinx_mapping (
485486	{
486487		"python" : ("https://docs.python.org/3" , (None , "python-inv.txt" )),
487488		"PEP" : ("https://peps.python.org" , (None , "pep-inv.txt" )),
488489	},
489490)
490491
491492
492- def  linkcode_resolve (domain : Any , info : Any ) ->  str :
493+ def  linkcode_resolve (domain : any , info : any ) ->  str :
493494	""" 
494- 	Resolves selectively linking to GitHub source-code for the multicast  module. 
495+ 	Resolves selectively linking to GitHub source-code for the project  module. 
495496
496497	See https://www.sphinx-doc.org/en/master/usage/extensions/linkcode.html for more details. 
497498
@@ -506,7 +507,7 @@ def linkcode_resolve(domain: Any, info: Any) -> str:
506507
507508			>>> _conf.linkcode_resolve is not None 
508509			True 
509- 			>>> test_text = "multicast .env"  # this is resolved 
510+ 			>>> test_text = "pythonrepo .env"  # this is resolved 
510511			>>> bad_input = False  # this is invalid 
511512			>>> res_text = _conf.linkcode_resolve("py", info={"module": test_text}) 
512513			>>> res_text is not None 
0 commit comments