Skip to content
GitLab
Explore
Sign in
Register
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
Compare
main
version 3
c6e1f685
1 year ago
version 2
33ca2c4e
1 year ago
version 1
4b7c67ea
1 year ago
main (base)
and
latest version
latest version
d4ab23d7
4 commits,
1 year ago
version 3
c6e1f685
3 commits,
1 year ago
version 2
33ca2c4e
2 commits,
1 year ago
version 1
4b7c67ea
1 commit,
1 year ago
4 files
+
25
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
{{cookiecutter.project_slug}}/docs/cleanup.py
0 → 100644
+
23
−
0
View file @ d4ab23d7
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_documentation
"
)
print
(
f
"
Cleaning..
{
clean_dir
}
/*
"
)
if
not
os
.
path
.
exists
(
clean_dir
):
exit
()
for
file_name
in
os
.
listdir
(
clean_dir
):
file
=
os
.
path
.
join
(
clean_dir
,
file_name
)
if
file_name
==
"
index.rst
"
:
continue
print
(
f
"
Removing..
{
file
}
"
)
os
.
remove
(
file
)
Loading