From 7a58a714dabbc198369b3811d282b933daae4c4f Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Thu, 8 Sep 2016 15:44:09 -0700 Subject: [PATCH 1/2] easier webserver directions. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4ee7a96..f253cd3 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,10 @@ This is the source of the official [Chrome Multi-Device documentation](https://d ### Running the site +_This is a bit of a hack. The pages may look wonky._ + 1. In the root of the project, start a server on port 8000 - * See this [script for Python server](https://github.com/paulirish/dotfiles/blob/3fa2e7dc1f1ea5eaf7f6a2531b937ff8bd8833f9/.functions#L25-L32). - * It's easier if your server can also do a directory listing. + * For example: `python -m SimpleHTTPServer 8000` 2. Open [http://localhost:8000/_preview.html](http://localhost:8000/_preview.html) 3. You will see the boilerplate with the index.html file already included 4. To preview another document, add a url paramater with the filename From 008be8584956c3daa56ab436e8f098c786779986 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Thu, 8 Sep 2016 17:27:15 -0700 Subject: [PATCH 2/2] readme: port --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f253cd3..7ef95c4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ _This is a bit of a hack. The pages may look wonky._ 3. You will see the boilerplate with the index.html file already included 4. To preview another document, add a url paramater with the filename * Something like: [http://localhost:8000/_preview.html?data-compression.html](http://localhost:8000/_preview.html?data-compression.html) - * Or: [http://localhost:8888/_preview.html?webview/gettingstarted.html](http://localhost:8888/_preview.html?webview/gettingstarted.html) + * Or: [http://localhost:8000/_preview.html?webview/gettingstarted.html](http://localhost:8000/_preview.html?webview/gettingstarted.html) * Things mostly work but is not exactly the same as viewing through DCC. ### Deployment