Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON Templates
Python Package
Merge requests
!27
Fix docs
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix docs
fix-docs
into
main
Overview
9
Commits
4
Pipelines
4
Changes
4
All threads resolved!
Hide all comments
Merged
Hannes Feldt
requested to merge
fix-docs
into
main
1 year ago
Overview
9
Commits
4
Pipelines
4
Changes
4
All threads resolved!
Hide all comments
0
0
Merge request reports
Viewing commit
4b7c67ea
Prev
Next
Show latest version
4 files
+
21
−
17
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
4b7c67ea
Fix docs
· 4b7c67ea
Hannes Feldt
authored
1 year ago
{{cookiecutter.project_slug}}/docs/cleanup.py
0 → 100644
+
19
−
0
View file @ 4b7c67ea
Edit in single-file editor
Open in Web IDE
#!/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