https://github.com/think2011/lodash-zh
lodash4+文档翻译
https://github.com/think2011/lodash-zh
Last synced: 12 months ago
JSON representation
lodash4+文档翻译
- Host: GitHub
- URL: https://github.com/think2011/lodash-zh
- Owner: think2011
- Created: 2015-12-22T03:59:11.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2024-01-11T11:42:39.000Z (over 2 years ago)
- Last Synced: 2024-04-13T16:27:47.268Z (about 2 years ago)
- Language: HTML
- Homepage: http://think2011.github.io/lodash-zh/
- Size: 4.09 MB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lodash doc
http://lodash.think2011.net
This is a trial doc website for lodash, generated from markdown using [pub-server](http://jldec.github.io/pub-doc)
To edit the site locally, clone https://github.com/jldec/lodash-doc-src, then
```sh
npm install
```
`pub-config.js` points to the lodash source code in '../../lodash/lodash/lodash.js'. Either modify pub-config to point to the actual source location, or clone lodash to match this.
To generate the doc site and preview at http://localhost:3001/ while you edit
```sh
npm run develop
```
The browser preview will auto-reload whenever you save a file.
To generate a new set of html and copy static files into ./out.
```sh
npm run generate
```
To preview the generated static output at http://localhost:3001/
```sh
npm run static
```
To publish to gh-pages, use a separate repo with just a `gh-pages` branch in the `./out` directory. To set this up the first time:
```bash
cd out
git init
git add -A
git commit -m 'first pub-server output'
git branch -m gh-pages
```
The last step above just renames the default "master" branch to "gh-pages".
Follow the normal process to create a new repo on Gitub and use the suggested commands for intializing that with an existing repo, _except_ when you `git push -u` the first time, replace "master" with "gh-pages".
```bash
git remote add origin https://github.com//.git
git push -u origin gh-pages
```