mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
More block markup tests.
This commit is contained in:
1 parent
8ba78e88e7
commit
8d0c50c5b4
3 files changed
+17
No files matched your search
@@ -25,6 +25,7 @@ today_fmt = '%B %d, %Y'
|
||||
exclude_trees = ['_build']
|
||||
keep_warnings = True
|
||||
pygments_style = 'sphinx'
|
||||
show_authors = True
|
||||
|
||||
rst_epilog = '.. |subst| replace:: global substitution'
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Meta markup
|
||||
-----------
|
||||
|
||||
.. sectionauthor:: Georg Brandl
|
||||
.. moduleauthor:: Georg Brandl
|
||||
|
||||
.. contents:: TOC
|
||||
|
||||
@@ -155,6 +156,17 @@ Version markup
|
||||
Boring stuff.
|
||||
|
||||
|
||||
Code blocks
|
||||
-----------
|
||||
|
||||
.. code-block:: ruby
|
||||
:linenos:
|
||||
|
||||
def ruby?
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
Misc stuff
|
||||
----------
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ HTML_XPATH = {
|
||||
},
|
||||
'markup.html': {
|
||||
".//title": 'set by title directive',
|
||||
".//p/em": 'Section author: Georg Brandl',
|
||||
".//p/em": 'Module author: Georg Brandl',
|
||||
# created by the meta directive
|
||||
".//meta[@name='author'][@content='Me']": '',
|
||||
".//meta[@name='keywords'][@content='docs, sphinx']": '',
|
||||
@@ -122,6 +124,8 @@ HTML_XPATH = {
|
||||
".//a[@class='footnote-reference']": r'\[1\]',
|
||||
# created by reference lookup
|
||||
".//a[@href='contents.html#ref1']": '',
|
||||
# ``seealso`` directive
|
||||
".//div/p[@class='first admonition-title']": 'See also',
|
||||
# a ``hlist`` directive
|
||||
".//table[@class='hlist']/tr/td/ul/li": '^This$',
|
||||
# a ``centered`` directive
|
||||
|
||||
Reference in new issue
Block a user