|
44 | 44 | # -- import version from doc/version.py ------------------------------------- |
45 | 45 | from version import __version__ |
46 | 46 |
|
47 | | -# -- copy run-time comparison markdown -------------------------------------- |
48 | | -print("Copy the run-time comparison table") |
49 | 47 | dstdir = "_mf6run" |
50 | | -fpth = "run-time-comparison.md" |
51 | | -src = os.path.join("..", "distribution", fpth) |
52 | | -dst = os.path.join(dstdir, fpth) |
53 | | -# clean up an existing _mf6run directory |
54 | 48 | if os.path.isdir(dstdir): |
55 | 49 | shutil.rmtree(dstdir) |
56 | | -# make the _mf6run directory |
57 | 50 | os.makedirs(dstdir) |
58 | | -# copy the file |
| 51 | + |
| 52 | +print(f"Copy run-time comparison table to {dstdir}") |
| 53 | +fpth = "run-time-comparison.md" |
| 54 | +src = os.path.join("..", "distribution", fpth) |
| 55 | +dst = os.path.join(dstdir, fpth) |
59 | 56 | shutil.copy(src, dst) |
60 | 57 |
|
61 | | -# -- copy developer docs |
62 | 58 | dstdir = "_dev" |
63 | | -fpth = "DEVELOPER.md" |
64 | | -src = os.path.join("..", fpth) |
65 | | -dst = os.path.join(dstdir, fpth.lower()) |
66 | | -# clean up an existing _mf6run directory |
67 | 59 | if os.path.isdir(dstdir): |
68 | 60 | shutil.rmtree(dstdir) |
69 | | -# make the directory |
70 | 61 | os.makedirs(dstdir) |
71 | | -# copy the file |
| 62 | + |
| 63 | +print(f"Copy developer docs to {dstdir}") |
| 64 | +fpth = "DEVELOPER.md" |
| 65 | +src = os.path.join("..", fpth) |
| 66 | +dst = os.path.join(dstdir, fpth) |
72 | 67 | shutil.copy(src, dst) |
73 | 68 |
|
74 | | -# -- copy contributor docs |
75 | 69 | fpth = "CONTRIBUTING.md" |
76 | 70 | src = os.path.join("..", fpth) |
77 | | -dst = os.path.join(dstdir, fpth.lower()) |
| 71 | +dst = os.path.join(dstdir, fpth) |
78 | 72 | shutil.copy(src, dst) |
79 | 73 |
|
80 | | -# -- copy style guide |
81 | 74 | fpth = "styleguide.md" |
82 | 75 | src = os.path.join(fpth) |
83 | 76 | dst = os.path.join(dstdir, fpth) |
84 | 77 | shutil.copy(src, dst) |
85 | 78 |
|
86 | | -# -- copy DFN spec |
87 | 79 | fpth = "readme.md" |
88 | 80 | src = os.path.join("..", "doc", "mf6io", "mf6ivar", fpth) |
89 | 81 | dst = os.path.join(dstdir, "dfn.md") |
90 | 82 | shutil.copy(src, dst) |
91 | 83 |
|
| 84 | +fpth = "EXTENDED.md" |
| 85 | +src = os.path.join("..", fpth) |
| 86 | +dst = os.path.join(dstdir, fpth) |
| 87 | +shutil.copy(src, dst) |
| 88 | + |
| 89 | +fpth = "CODE_OF_CONDUCT.md" |
| 90 | +src = os.path.join("..", fpth) |
| 91 | +dst = os.path.join(dstdir, fpth) |
| 92 | +shutil.copy(src, dst) |
| 93 | + |
| 94 | +dstdir = "_migration" |
| 95 | +if os.path.isdir(dstdir): |
| 96 | + shutil.rmtree(dstdir) |
| 97 | +os.makedirs(dstdir) |
| 98 | + |
| 99 | +print(f"Copy migration guides to {dstdir}") |
| 100 | +fpth = "mf6_6_0_prt_migration_guide.md" |
| 101 | +src = os.path.join("..", "src", "Solution", "ParticleTracker", fpth) |
| 102 | +dst = os.path.join(dstdir, fpth) |
| 103 | +shutil.copy(src, dst) |
| 104 | + |
92 | 105 | # -- build the deprecations table -------------------------------------------- |
93 | 106 | print("Build the deprecations markdown table") |
94 | 107 | pth = os.path.join("..", "doc", "mf6io", "mf6ivar") |
|
168 | 181 | "nbsphinx_link", |
169 | 182 | "myst_parser", |
170 | 183 | "sphinx_markdown_tables", |
| 184 | + "sphinxcontrib.mermaid", |
171 | 185 | ] |
172 | 186 |
|
173 | 187 | # # Tell sphinx what the pygments highlight language should be. |
|
0 commit comments