From bcd158aedbcd58961d3334c536b290f000dc6058 Mon Sep 17 00:00:00 2001 From: Mary Anthony Date: Tue, 16 Jun 2015 05:34:56 -0700 Subject: [PATCH] putting back in the index.md Fixing bad image links Fixing broken images redux The (./index.md) doesn't resolve in hugo; fixing Working script confirmed fixing broken link Signed-off-by: Mary Anthony --- docs/Dockerfile | 22 ++++++++++++++-------- docs/{kitematic-overview.md => index.md} | 5 ++--- docs/minecraft-server.md | 2 +- docs/nginx-web-server.md | 2 +- docs/rethinkdb-dev-database.md | 2 +- docs/userguide.md | 2 +- 6 files changed, 20 insertions(+), 15 deletions(-) rename docs/{kitematic-overview.md => index.md} (93%) diff --git a/docs/Dockerfile b/docs/Dockerfile index 90cafedc5d..ac3cf79880 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -8,17 +8,23 @@ COPY . /docs/content/kitematic/ # Sed to process GitHub Markdown # 1-2 Remove comment code from metadata block -# 3 Remove .md extension from link text -# 4 Change ](/ to ](/project/ in links -# 5 Change ](word) to ](/project/word) -# 6 Change ](../../ to ](/project/ -# 7 Change ](../ to ](/project/word) -# +# 3 Change ](/word to ](/project/ in links +# 4 Change ](word.md) to ](/project/word) +# 5 Remove .md extension from link text +# 6 Change ](./ to ](/project/word) +# 7 Change ](../../ to ](/project/ +# 8 Change ](../ to ](/project/ +# 9 Change ](# to ](/project/ # RUN find /docs/content/kitematic -type f -name "*.md" -exec sed -i.old \ -e '/^/g' \ -e '/^/g' \ - -e 's/\([(]\)\(.*\)\(\.md\)/\1\2/g' \ -e 's/\(\]\)\([(]\)\(\/\)/\1\2\/kitematic\//g' \ - -e 's/\(\][(]\)\([A-z]*[)]\)/\]\(\/kitematic\/\2/g' \ + -e 's/\(\][(]\)\([A-z].*\)\(\.md\)/\1\/kitematic\/\2/g' \ + -e 's/\([(]\)\(.*\)\(\.md\)/\1\2/g' \ + -e 's/\(\][(]\)\(\.\/\)/\1\/kitematic\//g' \ + -e 's/\(\][(]\)\(\.\.\/\.\.\/\)/\1\/kitematic\//g' \ -e 's/\(\][(]\)\(\.\.\/\)/\1\/kitematic\//g' {} \; + + + \ No newline at end of file diff --git a/docs/kitematic-overview.md b/docs/index.md similarity index 93% rename from docs/kitematic-overview.md rename to docs/index.md index 3ce916534a..ef3fd45ec3 100755 --- a/docs/kitematic-overview.md +++ b/docs/index.md @@ -38,17 +38,16 @@ container! Kitematic is a self-contained .app, with an exception: - It will install VirtualBox if it's not already installed. - convenience. ### Why does Kitematic need my root password? Kitematic needs your root password for two reasons: -- Installing VirtualBox requires root as it includes Mac OS X kernel extensions. +- Installing VirtualBox requires root access as it includes Mac OS X kernel extensions. - Copying `docker` and `docker-machine` to `/usr/local/bin` may require root permission if the default permissions for this directory have been changed prior to installing Kitematic. ## Next Steps -For information about using Kitematic, take a look at the [User Guide](../userguide). +For information about using Kitematic, take a look at the [User Guide](/userguide). diff --git a/docs/minecraft-server.md b/docs/minecraft-server.md index c036311941..25872ce196 100755 --- a/docs/minecraft-server.md +++ b/docs/minecraft-server.md @@ -17,7 +17,7 @@ using Kitematic and Docker. ### Create Minecraft Server Container First, if you haven't yet done so, [download and start -Kitematic](./kitematic-overview.md). Once installed and running, the app should look like this: +Kitematic](/). Once installed and running, the app should look like this: Create a container from the recommended Minecraft image by clicking the "Create" button. diff --git a/docs/nginx-web-server.md b/docs/nginx-web-server.md index de04754a2e..923c4886d2 100755 --- a/docs/nginx-web-server.md +++ b/docs/nginx-web-server.md @@ -25,7 +25,7 @@ Let's get to it! #### Running the Nginx Web Server Container First, if you haven't yet done so, [download and start -Kitematic](./kitematic-overview.md). Once installed and running, the app should look like this: +Kitematic](/). Once installed and running, the app should look like this: ![Nginx create](../images/nginx-create.png) diff --git a/docs/rethinkdb-dev-database.md b/docs/rethinkdb-dev-database.md index 1bd1b12527..817ba2d7c0 100755 --- a/docs/rethinkdb-dev-database.md +++ b/docs/rethinkdb-dev-database.md @@ -19,7 +19,7 @@ In this tutorial, you will: ### Setting up RethinkDB in Kitematic First, if you haven't yet done so, [download and start -Kitematic](./kitematic-overview.md). Once open, the app should look like +Kitematic](/). Once open, the app should look like this: ![Rethink create button](../images/rethink-create.png) diff --git a/docs/userguide.md b/docs/userguide.md index f932c76411..a281109b0e 100755 --- a/docs/userguide.md +++ b/docs/userguide.md @@ -30,7 +30,7 @@ stream logs, and single click terminal into your Docker container all from the GUI. First, if you haven't yet done so, [download and start -Kitematic](./kitematic-overview.md). +Kitematic](/). ## Container list