forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert absolute links to relative (kubernetes#991)
Followup to kubernetes#990, and also based off of the `alpeb/unversion-common-docs` branch. This is preliminary work to convert `/2` into `/2.9` in a followup PR. For reference, here's the procedure I followed. It was also performed for `2` (s/2.10/2 in the commands below). ```console # Under /features $ find . -type f -exec sed -i -e 's/\/2.10\/features/\.\./g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/tasks/\.\.\/\.\.\/tasks/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/reference/\.\.\/\.\.\/reference/g' {} \; # Then edit _index.html which refers directly to ../tasks and ../reference # Under /tasks $ find . -type f -exec sed -i -e 's/\/2.10\/tasks/\.\./g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/features/\.\.\/\.\.\/features/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/reference/\.\.\/\.\.\/reference/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/getting-started/\.\.\/\.\.\/getting-started/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/upgrade/\.\.\/\.\.\/upgrade/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/proxy-injection/\.\.\/\.\.\/proxy-injection/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/observability/\.\.\/\.\.\/observability/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/adding-your-service/\.\.\/\.\.\/adding-your-service/g' {} \; # Then edit _index.html which refers directly to ../tasks and ../reference # Under /reference $ find . -maxdepth 1 -type f -exec sed -i -e 's/\/2.10\/reference/\.\./g' {} \; $ find . -maxdepth 1 -type f -exec sed -i -e 's/\/2.10\/features/\.\.\/\.\.\/features/g' {} \; $ find . -maxdepth 1 -type f -exec sed -i -e 's/\/2.10\/tasks/\.\.\/\.\.\/tasks/g' {} \; # Under /reference/cli $ find . -type f -exec sed -i -e 's/\/2.10\/reference/\.\.\/\.\./g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/features/\.\.\/\.\.\/\.\.\/features/g' {} \; $ find . -type f -exec sed -i -e 's/\/2.10\/tasks/\.\.\/\.\.\/\.\.\/tasks/g' {} \; # Under getting-started and overview: just manually edit _index.md ```
- Loading branch information
Showing
132 changed files
with
532 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.