@@ -293,6 +293,20 @@ def test_html_sidebar(app, status, warning):
293293 assert ctx ['sidebars' ] == []
294294
295295
296+ @pytest .mark .parametrize (("fname" , "expect" ), [
297+ ('index.html' , (".//h1/em/a[@href='https://example.com/cp.1']" , '' , True )),
298+ ('index.html' , (".//em/a[@href='https://example.com/man.1']" , '' , True )),
299+ ('index.html' , (".//em/a[@href='https://example.com/ls.1']" , '' , True )),
300+ ('index.html' , (".//em/a[@href='https://example.com/sphinx.']" , '' , True )),
301+ ])
302+ @pytest .mark .sphinx ('html' , testroot = 'manpage_url' , confoverrides = {
303+ 'manpages_url' : 'https://example.com/{page}.{section}' })
304+ @pytest .mark .test_params (shared_result = 'test_build_html_manpage_url' )
305+ def test_html_manpage (app , cached_etree_parse , fname , expect ):
306+ app .build ()
307+ check_xpath (cached_etree_parse (app .outdir / fname ), fname , * expect )
308+
309+
296310@pytest .mark .sphinx ('html' , testroot = 'toctree-glob' ,
297311 confoverrides = {'html_baseurl' : 'https://example.com/' })
298312def test_html_baseurl (app , status , warning ):
0 commit comments