You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+55-34
Original file line number
Diff line number
Diff line change
@@ -19,31 +19,47 @@ _Note: The instructions in this repo are for Linux and Mac environments._
19
19
20
20
Note that this works _without_ editing your existing docs and _without_ building any HTML pages. The rendering is done on the client-side in a single page application, running on _index.html_.
21
21
22
-
## Quickstart
22
+
## How to clone this repo
23
23
24
-
### Setup
25
-
26
-
No installation is needed.
27
-
28
-
You need connection to the internet in order to load the _Docsify_ library in the browser.
Choose whatever approach you wish to serve the docs folder. There are many listed [here](https://gist.github.com/willurd/5720255). Here are a some examples:
41
-
42
31
```bash
43
-
$ python3 -m http.server 3000
44
-
$ docsify serve docs
32
+
$ cd docsify-template
45
33
```
46
34
35
+
## Quickstart to run serve locally
36
+
37
+
### 1. Install
38
+
39
+
Clone this repo to your machine using the [steps](#clone-this-repo) above.
40
+
41
+
No installation is needed. Just clone the repo using
42
+
43
+
You need do an internet connection to load the _Docsify_ library in the browser.
44
+
45
+
### 2. Run
46
+
47
+
#### 2.1 Serve
48
+
49
+
Choose any approach you wish to serve the docs folder. There are many listed [here](https://gist.github.com/willurd/5720255) or choose chose of these:
50
+
51
+
- From docs directory.
52
+
```bash
53
+
$ cd docs
54
+
$ python3 -m http.server 3000
55
+
```
56
+
- From project root.
57
+
```bash
58
+
$ docsify serve docs
59
+
```
60
+
61
+
#### 2.2 View
62
+
47
63
Then open http://localhost:3000 in the browser.
48
64
49
65
User notes:
@@ -53,30 +69,35 @@ User notes:
53
69
54
70
## Setup your own docs site
55
71
56
-
The idea is to add to an existing project / git repo, so it is not that useful to create your own project from this repo. So rather copy base structure and configs from this project to your own, then customize them for your needs.
72
+
The idea is to add to an existing project / git repo, so it is not that useful to create your own project from this repo.
57
73
58
-
```bash
59
-
$ cd<PATH_TO_THIS_REPO>
60
-
$ cd docs
61
-
```
74
+
Follow to steps in this section copy a base structure and configs from this project to your own, then customize them for your needs.
75
+
76
+
### 1. Get this project locally
77
+
78
+
Clone this repo to your machine using the [steps](#clone-this-repo) above.
You can leave the `.nojekyll` untouched as it just helps Github Pages include the underscore files in builds.
92
+
You don't need to do anything to `.nojekyll`. Its existence tells Github Pages to include the underscore files in builds.
72
93
73
-
### Configure README.md
94
+
### 3. Configure README.md
74
95
75
-
The `docs/README.md` file is your homepage. It might have a structure like this:
96
+
The `docs/README.md` file is your homepage. You can give a structure similar to a repo's top-level _README.md_, such as something like this.
76
97
77
-
```
78
-
# Project name
79
-
> Project description
98
+
```markdown
99
+
# Project Name
100
+
> My project description
80
101
81
102
## Sample
82
103
@@ -97,13 +118,13 @@ But you can optionally put links in that file to your other docs files, if that
97
118
98
119
You may want to copy or move content from your root _README.md_ to the _docs/REAME.md_ file.
99
120
100
-
### Configure index page
121
+
### 4. Configure index page
101
122
102
123
You can leave the _index.html_ page as it is.
103
124
104
125
Optionally you can set coverpage and sidebar options to `false`, or delete those rows.
105
126
106
-
### Configure sidebar
127
+
### 5. Configure sidebar
107
128
108
129
The sidebar is the menu page on the left of the docs and shows on all page.
109
130
@@ -125,7 +146,7 @@ These approaches were attempted but do not work:
125
146
[Home](#docsify-template)
126
147
```
127
148
128
-
### Configure cover page
149
+
### 6. Configure cover page
129
150
130
151
Use this project's [coverpage](https://raw.githubusercontent.com/MichaelCurrin/docsify-template/master/docs/_coverpage.md) raw file on Github as a reference to edit your own *_coverpage.md* file.
131
152
@@ -135,11 +156,11 @@ You could include a logo image above your project title. For example, you could
135
156

136
157
```
137
158
138
-
### Style
159
+
### 7. Style
139
160
140
161
How to customize the style of your project.
141
162
142
-
#### Color
163
+
#### 7.1 Color
143
164
144
165
Edit _index.html_.
145
166
@@ -155,7 +176,7 @@ window.$docsify = {
155
176
156
177
More on Docsify [theme color](https://docsify.js.org/#/configuration?id=themecolor).
0 commit comments