[Lldb-commits] [PATCH] D112612: [lldb] [docs] Remove obsolete recommonmark use

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 27 04:45:36 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd03b04f211e7: [lldb] [docs] Remove obsolete recommonmark use (authored by mgorny).
Herald added a project: LLDB.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112612/new/

https://reviews.llvm.org/D112612

Files:
  lldb/docs/conf.py


Index: lldb/docs/conf.py
===================================================================
--- lldb/docs/conf.py
+++ lldb/docs/conf.py
@@ -61,21 +61,6 @@
     '.rst': 'restructuredtext',
 }
 
-try:
-  import recommonmark
-except ImportError:
-  # manpages do not use any .md sources
-  if not building_man_page:
-    raise
-else:
-  import sphinx
-  if sphinx.version_info >= (3, 0):
-    # This requires 0.5 or later.
-    extensions.append('recommonmark')
-  else:
-    source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
-  source_suffix['.md'] = 'markdown'
-
 # The encoding of source files.
 #source_encoding = 'utf-8-sig'
 
@@ -285,20 +270,6 @@
 # If true, show URL addresses after external links.
 #man_show_urls = False
 
-def process_md(name):
-    file_subpath = os.path.join(command_guide_subpath, name)
-    with open(os.path.join(command_guide_path, name)) as f:
-        title = f.readline().rstrip('\n')
-
-        m = re.match(r'^# (\S+) - (.+)$', title)
-        if m is None:
-            print("error: invalid title in %r "
-                  "(expected '# <name> - <description>')" % file_subpath,
-                  file=sys.stderr)
-        else:
-            man_pages.append((file_subpath.replace('.md',''), m.group(1),
-                              m.group(2), man_page_authors, 1))
-
 # -- Options for Texinfo output ------------------------------------------------
 
 # Grouping the document tree into Texinfo files. List of tuples


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112612.382609.patch
Type: text/x-patch
Size: 1475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211027/c487064e/attachment.bin>


More information about the lldb-commits mailing list