Skip to content

Commit 18f77f6

Browse files
committed
docs: Improve and add to docs/README.md
1 parent 5e122d1 commit 18f77f6

File tree

1 file changed

+55
-34
lines changed

1 file changed

+55
-34
lines changed

Diff for: docs/README.md

+55-34
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,47 @@ _Note: The instructions in this repo are for Linux and Mac environments._
1919

2020
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_.
2121

22-
## Quickstart
22+
## How to clone this repo
2323

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.
29-
30-
### Run locally
31-
32-
```bash
24+
```
3325
$ # Clone with SSH
3426
$ git clone [email protected]:MichaelCurrin/docsify-template.git
3527
$ # Clone with HTTPS
3628
$ git clone https://github.com/MichaelCurrin/docsify-template.git
37-
$ cd docsify-template
3829
```
3930

40-
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-
4231
```bash
43-
$ python3 -m http.server 3000
44-
$ docsify serve docs
32+
$ cd docsify-template
4533
```
4634

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+
4763
Then open http://localhost:3000 in the browser.
4864

4965
User notes:
@@ -53,30 +69,35 @@ User notes:
5369

5470
## Setup your own docs site
5571

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.
5773

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.
79+
80+
### 2. Create base structure
6281

63-
### Create base structure
82+
Add to your project's docs folder.
6483
6584
```bash
66-
$ cp index.html<PATH_TO_YOUR_REPO>/docs
85+
$ cd <PATH_TO_THIS_REPO>
86+
$ cd docs
87+
$ cp index.html <PATH_TO_YOUR_REPO>/docs
6788
$ cd <PATH_TO_YOUR_REPO>/docs
6889
$ touch README.md .nojekyll _coverpage.md _sidebar_.md
6990
```
7091
71-
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.
7293

73-
### Configure README.md
94+
### 3. Configure README.md
7495

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.
7697
77-
```
78-
# Project name
79-
> Project description
98+
```markdown
99+
# Project Name
100+
> My project description
80101
81102
## Sample
82103
@@ -97,13 +118,13 @@ But you can optionally put links in that file to your other docs files, if that
97118
98119
You may want to copy or move content from your root _README.md_ to the _docs/REAME.md_ file.
99120
100-
### Configure index page
121+
### 4. Configure index page
101122
102123
You can leave the _index.html_ page as it is.
103124
104125
Optionally you can set coverpage and sidebar options to `false`, or delete those rows.
105126
106-
### Configure sidebar
127+
### 5. Configure sidebar
107128
108129
The sidebar is the menu page on the left of the docs and shows on all page.
109130
@@ -125,7 +146,7 @@ These approaches were attempted but do not work:
125146
[Home](#docsify-template)
126147
```
127148
128-
### Configure cover page
149+
### 6. Configure cover page
129150
130151
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.
131152

@@ -135,11 +156,11 @@ You could include a logo image above your project title. For example, you could
135156
![icon](_media/logo.svg)
136157
```
137158

138-
### Style
159+
### 7. Style
139160

140161
How to customize the style of your project.
141162

142-
#### Color
163+
#### 7.1 Color
143164

144165
Edit _index.html_.
145166

@@ -155,7 +176,7 @@ window.$docsify = {
155176
156177
More on Docsify [theme color](https://docsify.js.org/#/configuration?id=themecolor).
157178
158-
#### Themes
179+
#### 7.2 Themes
159180
160181
Edit _index.html_.
161182

0 commit comments

Comments
 (0)