Skip to content
Snippets Groups Projects

Fix docs

All threads resolved!
Merged Hannes Feldt requested to merge fix-docs into main
All threads resolved!
4 files
+ 21
17
Compare changes
  • Side-by-side
  • Inline

Files

 
#!/usr/bin/env python3
 
 
# Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
 
# SPDX-License-Identifier: Apache-2.0
 
 
import os
 
 
file_dir = os.path.dirname(os.path.realpath(__file__))
 
 
clean_dir = os.path.join(file_dir, "source", "source/source_documentation")
 
print(f"Cleaning.. {clean_dir}/*")
 
 
for file_name in os.listdir(clean_dir):
 
file = os.path.join(clean_dir, file_name)
 
match file_name:
 
case "index.rst": continue
 
case _:
 
print(f"Removing.. {file}")
 
os.remove(file)
Loading