File: build_docs.patch

package info (click to toggle)
petsc4py 3.22.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,380 kB
  • sloc: python: 12,118; ansic: 1,699; makefile: 342; f90: 313; sh: 14
file content (43 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Index: petsc4py/docs/source/conf.py
===================================================================
--- petsc4py.orig/docs/source/conf.py	2024-10-09 11:02:40.242829692 +0200
+++ petsc4py/docs/source/conf.py	2024-10-09 11:04:25.443914234 +0200
@@ -19,7 +19,7 @@
 import importlib
 import sphobjinv
 import functools
-import pylit
+#import pylit
 from sphinx.ext.napoleon.docstring import NumpyDocstring
 
 sys.path.insert(0, os.path.abspath('.'))
@@ -321,8 +321,9 @@
                 os.path.join(os.path.join('demo', os.path.splitext(demo)[0] + '.rst')),
                 'w',
             ) as outfile:
-                converter = pylit.Code2Text(infile)
-                outfile.write(str(converter))
+                pass
+                #converter = pylit.Code2Text(infile)
+                #outfile.write(str(converter))
         demo_copy_name = os.path.join(demo_dir, os.path.basename(demo))
         shutil.copyfile(demo_src, demo_copy_name)
         html_static_path.append(demo_copy_name)
@@ -400,14 +401,14 @@
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'pydata_sphinx_theme'
+#html_theme = 'pydata_sphinx_theme'
 
 html_theme_options = {
     'navigation_with_keys': True,
     "footer_end": ["theme-version", "last-updated"],
 }
-git_describe_version = subprocess.check_output(['git', 'describe', '--always']).strip().decode('utf-8') # noqa: S603, S607
-html_last_updated_fmt = r'%Y-%m-%dT%H:%M:%S%z (' + git_describe_version + ')'
+#git_describe_version = subprocess.check_output(['git', 'describe', '--always']).strip().decode('utf-8') # noqa: S603, S607
+#html_last_updated_fmt = r'%Y-%m-%dT%H:%M:%S%z (' + git_describe_version + ')'
 
 # -- Options for HTMLHelp output ------------------------------------------