Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
ee71bfc4
Commit
ee71bfc4
authored
Apr 28, 2025
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: move indexhtml up one level
So as not to hide it too deeply.
parent
84aaf54d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
50-docs-indexhtml
features.in/docs/scripts.d/50-docs-indexhtml
+4
-6
No files found.
features.in/docs/scripts.d/50-docs-indexhtml
View file @
ee71bfc4
...
...
@@ -3,7 +3,6 @@
# trailing slash is important here
dest="docs/"
mkdir -p "$WORKDIR/$dest"
cd $WORKDIR
nonfatal() { echo "** $*" >
&2;
exit 0; }
...
...
@@ -24,13 +23,13 @@ find "$indexdir" -xtype l 2>/dev/null -exec rm {} \;
cp -aL "$indexdir" "$dest"
# delete links with absolute PATH
sed -i -e '/file:\/\/\//d' -e '/href="\//d' "$dest"/index
html/index
-*.html
sed -i -e '/file:\/\/\//d' -e '/href="\//d' "$dest"/index-*.html
mkredir() {
cat >"${1}index.html"
<
<
-EOF
<
html
>
<head>
<meta
http-equiv=
"refresh"
content=
"0;url=${2}index
html/index
.html"
>
<meta
http-equiv=
"refresh"
content=
"0;url=${2}index.html"
>
<title>
Redirecting...
</title>
</head>
<body>
...
...
@@ -40,11 +39,10 @@ mkredir() {
EOF
}
mkredir "" "$dest" # /index.html -> docs/indexhtml/index.html
mkredir "$dest" "" # docs//index.html -> indexhtml/index.html
mkredir "" "$dest" # /index.html -> docs/index.html
docdir="/usr/share/doc/documentation"
if [ -d "$docdir" ]
&&
[ ! -d "$dest"/
indexhtml/
documentation ]; then
if [ -d "$docdir" ]
&&
[ ! -d "$dest"/documentation ]; then
### no need to replace symlinks with hardlinks by now? (-aH)
cp -aH "$docdir" "$dest"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment