@@ -131,37 +131,19 @@ def run_command(self, *args, env_vars={}):
131
131
print (f"Unexpected error: { e } " )
132
132
return None
133
133
134
- def build (self ):
134
+ def build (self , * args ):
135
135
"""
136
- Build the MyST markdown project.
136
+ Build the MyST markdown project with specified arguments .
137
137
138
- Returns:
139
- str: Command output or None if failed.
140
- """
141
- os .chdir (self .build_dir )
142
- self .cprint (f"--> Self env vars { self .env_vars } " , "green" )
143
- return self .run_command ('build' , '--execute' , '--html' ,env_vars = self .env_vars )
144
-
145
- def build_noexecute (self ):
146
- """
147
- Build the MyST markdown project.
138
+ Args:
139
+ *args: Variable length argument list for the myst command.
148
140
149
141
Returns:
150
142
str: Command output or None if failed.
151
143
"""
152
144
os .chdir (self .build_dir )
153
145
self .cprint (f"--> Self env vars { self .env_vars } " , "green" )
154
- return self .run_command ('build' ,'--html' ,env_vars = self .env_vars )
155
-
156
- def build_site (self ):
157
- """
158
- Build the MyST markdown project.
159
-
160
- Returns:
161
- str: Command output or None if failed.
162
- """
163
- os .chdir (self .build_dir )
164
- return self .run_command ('build' , '--site' ,env_vars = self .env_vars )
146
+ return self .run_command (* args , env_vars = self .env_vars )
165
147
166
148
def convert (self , input_file , output_file ):
167
149
"""
0 commit comments