mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-17 02:56:29 +02:00
[docs] generate extra node doc with custom extension
This commit is contained in:
parent
e022b377c4
commit
cec2c79d6a
7 changed files with 102 additions and 13 deletions
|
@ -38,14 +38,10 @@ class Relinker(SparseNodeVisitor):
|
|||
|
||||
class FetchMd(Directive):
|
||||
|
||||
required_arguments = 2
|
||||
|
||||
def arg_path(self):
|
||||
if self.arguments[0] == ':file:':
|
||||
return self.arguments[1]
|
||||
required_arguments = 1
|
||||
|
||||
def run(self):
|
||||
path = os.path.abspath(os.getenv('PROJECT_DIR') + '/' + self.arg_path())
|
||||
path = os.path.abspath(os.getenv('PROJECT_DIR')+'/'+self.arguments[0])
|
||||
result = []
|
||||
try:
|
||||
with open(path) as file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue