Skip to content

Commit

Permalink
docs: Get rid of /share
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 20, 2024
1 parent 5bcae52 commit 46c193d
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs-new/index.template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}.html" />
<meta http-equiv="refresh" content="0; url=./{{ROOT_NOTE_ID}}.html" />
</head>

<body>
Expand Down
7 changes: 7 additions & 0 deletions docs-new/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ rmdir "$output_dir/$SHARE_HOST"
index_dest_path="$output_dir/index.html"
cp index.template.html "$index_dest_path"
sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"

# Rewrite links to get rid of the share folder
sed -i "s/<link href=\"\\.\\./<link href=\"\\./g" "$output_dir/share"/*.html
sed -i "s/<script src=\"\\.\\./<script src=\"\\./g" "$output_dir/share"/*.html
sed -i "s/rel=\"shortcut icon\" href=\"\\.\\./rel=\"shortcut icon\" href=\"\\./g" "$output_dir/share"/*.html
mv "$output_dir/share"/* "$output_dir"
rmdir "$output_dir/share"
10 changes: 5 additions & 5 deletions docs/share/4yYHqKbLovVX.html → docs/4yYHqKbLovVX.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="shortcut icon" href="./favicon.ico">

<script src="../assets/v0.63.6/app-dist/share.js"></script>
<script src="./assets/v0.63.6/app-dist/share.js"></script>

<link href="../assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="../assets/v0.63.6/stylesheets/share.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="./assets/v0.63.6/stylesheets/share.css" rel="stylesheet">


<link href="../assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">



Expand Down
10 changes: 5 additions & 5 deletions docs/share/QXCi6Y1SYulw.html → docs/QXCi6Y1SYulw.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="shortcut icon" href="./favicon.ico">

<script src="../assets/v0.63.6/app-dist/share.js"></script>
<script src="./assets/v0.63.6/app-dist/share.js"></script>

<link href="../assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="../assets/v0.63.6/stylesheets/share.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="./assets/v0.63.6/stylesheets/share.css" rel="stylesheet">


<link href="../assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">



Expand Down
10 changes: 5 additions & 5 deletions docs/share/VS22Hq5PBFNf.html → docs/VS22Hq5PBFNf.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="shortcut icon" href="./favicon.ico">

<script src="../assets/v0.63.6/app-dist/share.js"></script>
<script src="./assets/v0.63.6/app-dist/share.js"></script>

<link href="../assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="../assets/v0.63.6/stylesheets/share.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="./assets/v0.63.6/stylesheets/share.css" rel="stylesheet">


<link href="../assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">



Expand Down
10 changes: 5 additions & 5 deletions docs/share/hkrBX8KE1HQl.html → docs/hkrBX8KE1HQl.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="shortcut icon" href="./favicon.ico">

<script src="../assets/v0.63.6/app-dist/share.js"></script>
<script src="./assets/v0.63.6/app-dist/share.js"></script>

<link href="../assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="../assets/v0.63.6/stylesheets/share.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/normalize.min.css" rel="stylesheet">
<link href="./assets/v0.63.6/stylesheets/share.css" rel="stylesheet">


<link href="../assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">
<link href="./assets/v0.63.6/libraries/ckeditor/ckeditor-content.css" rel="stylesheet">



Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=./share/4yYHqKbLovVX.html" />
<meta http-equiv="refresh" content="0; url=./4yYHqKbLovVX.html" />
</head>

<body>
Expand Down

0 comments on commit 46c193d

Please sign in to comment.