Skip to content

Commit 9a168a1

Browse files
authored
fix: live-reload not working for port 3000 (#5)
this changeset is to fix the issue related to the local preview not getting reloaded once content is changed. - forward port 35729 to 3000 - serve with live-reload - update repo docs
1 parent abe754f commit 9a168a1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.devcontainer/devcontainer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"image": "node:lts-bullseye",
55
// Use 'forwardPorts' to make a list of ports inside the container available locally.
66
"forwardPorts": [
7-
// Http
7+
// Localhost
88
3000,
9-
// Https
10-
3001
9+
// Live reload
10+
35729
1111
],
1212

1313
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
@@ -70,5 +70,5 @@
7070
// Use 'updateContentCommand' to run commands after the container is successfully created.
7171
"updateContentCommand": "yarn global add docsify-cli@latest --prefix /usr/local",
7272
// Use 'postCreateCommand' to run commands after the container is created.
73-
"postCreateCommand": "docsify serve . -p 3000"
73+
"postCreateCommand": "docsify serve . -P 35729"
7474
}

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Tryout Docsify
22

3-
[![docsify](https://img.shields.io/badge/maintained%20with-docsify-cc00ff.svg)](https://docsify.js.org/)
3+
[![alertbox](https://img.shields.io/badge/maintained%20by-alertbox-cc00ff.svg)](https://github.com/alertbox/devcontainers-try-docsify/)
44
![GitHub repo size](https://img.shields.io/github/repo-size/alertbox/devcontainers-try-docsify)
55

6-
[<img align="right" alt="Docsify" width="128rem" src="https://avatars.githubusercontent.com/u/40133106?s=200&v=4" />][docsify-quick-start]
6+
[<img align="right" alt="Docsify devcontainer repo size" width="128rem" src="https://avatars.githubusercontent.com/u/40133106?s=200&v=4" />][docsify-quick-start]
77

88
This template repo serves as a flavor of ready-to-go development container for use with [Dev Containers][devcontainers-overview].
99

@@ -60,7 +60,7 @@ First, you want a copy of this repo. It is marked as a `Template` so you will on
6060

6161
With [Dev Container CLI][devcontainer-cli-commands]:
6262

63-
Just run `devcontainer up devcontainers-try-docsify` in the repo. And that's it. Now you can [write more contents][docsify-write-more] and preview on [localhost:3000](http://localhost:3000).
63+
Just run `devcontainer up devcontainers-try-docsify` in the repo. And that's it. Now you can [write more contents][docsify-write-more] and live preview on [localhost:3000](http://localhost:3000).
6464

6565
[devcontainer-cli-commands]: https://github.com/devcontainers/cli#try-out-the-cli
6666
[docsify-write-more]: https://docsify.js.org/#/more-pages
@@ -73,6 +73,11 @@ First, run `code devcontainers-try-docsify/` in the repo to open in VS Code, and
7373

7474

7575

76+
## Known Issues
77+
78+
- https://github.com/docsifyjs/docsify-cli/issues/26#issuecomment-1483757192
79+
- https://github.com/docsifyjs/docsify-cli/issues/120#issuecomment-1483753553
80+
7681
## Learning Resources
7782

7883
- [GitHub Learning Lab for GitHub Pages](https://lab.github.com/githubtraining/github-pages)

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>Ready to Go</title>
5+
<title>Docsify - A ready-to-go template</title>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
77
<meta name="description"
88
content="A ready-to-go template, start with docsify js. This content is imported from @docsifyjs/docisfy-template repo.">

0 commit comments

Comments
 (0)