Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CodiMD export script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
misc
CodiMD export script
Merge requests
!1
Hedgedoc import
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hedgedoc import
hedgedoc-import
into
main
Overview
2
Commits
38
Pipelines
0
Changes
1
Merged
Andreas Domanowski
requested to merge
hedgedoc-import
into
main
2 years ago
Overview
2
Commits
38
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
218dbab6
Prev
Next
Show latest version
1 file
+
1
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
218dbab6
Add block heading when iterating over archive
· 218dbab6
Andreas Domanowski
authored
2 years ago
import_md/hedgedoc_import.py
+
1
−
0
Options
@@ -68,6 +68,7 @@ def process_archive_export(archive_file, instance_url, lookup_map, session_id, u
print
(
"
If you visited your own document via a, e.g.,
\"
codi-instance.tld/my_specified_free_url
\"
"
+
"
this script tries to migrate it to the HedgeDoc instance at
\"
hedgedoc-instance.tld/my_own_path
\"
"
)
print
(
"
If this is not possible, a new random URL for the document will be created
"
)
print_block_heading
(
"
Iterating over files in archive and trying to upload them
"
)
for
file
in
zf
.
namelist
():
document_title
=
Path
(
file
).
stem
# check for every file if there is a match between its name (= title in history json) and an existing path
Loading