Commit graph

2757 commits

Author SHA1 Message Date
Cole
0568ad4992 feat: allow different host through CLI flag (#1475)
* feat(core): use 0.0.0.0 for livereload address

* test(core): update server tests

* feat(cli): add host by command line flag

* test: revert test changes

* fix(core): update server to use custom host if supplied

* refactor: nits
2019-05-20 23:31:41 +07:00
Hongarc
382b88bb49 fix: mobile navigation should show deepest breadcrumb instead of outermost (#1493) 2019-05-19 16:13:39 +07:00
Hongarc
89582c7b7a refactor: better regex & path parsing for metadata (#1492)
* Don't need using `toString` after `path.basename`

* Use `parse` instead of `basename+extname`
2019-05-19 15:54:29 +07:00
Hongarc
9a18b7430a refactor: simplify blog url replacement regex (#1491) 2019-05-19 15:20:49 +07:00
Endi
cbd2a589e3 refactor(v2): migrate to Typescript ❄️🌀🐋 (#1490)
* refactor(v2): migrate to typescript

* scripts nits

* fix test

* nits

* nits

* tsconfig tweak
2019-05-18 11:37:35 -07:00
Sakti Kr Chourasia
c052b6acd8 fix: content displayed on bottom of mobile viewport when TOC is active (#1489)
* Remove TOC margin bottom for mobile
2019-05-18 14:37:18 +07:00
Hongarc
1587810e8f fix: wrong url in next/prev button in some cases (#1488) 2019-05-18 13:29:13 +07:00
Sakti Kr Chourasia
084a49819f fix: h3 topics with Markdown formatting causes a glitch on mobile (#1467)
* fixed h3 topics with Markdown formatting causes a glitch on mobile

* replaced currenttarget to headings for if check

* use var instead of es6
2019-05-18 12:57:57 +07:00
Hongarc
79b5ffd700 docs: add some showcase user of facebook (#1486)
* docs: showcase user Idb

* docs: showcase user Netconsd

* docs: showcase user Redex
2019-05-17 11:27:32 -07:00
Hongarc
f18e07343c docs: fix typo for docs folder (#1484)
* docs: fix typo for `docs` folder

* docs: request change for #1484

* Update api-doc-markdown.md
2019-05-17 10:26:55 -07:00
Hongarc
96445eee32 docs: remove pinned for Taro (#1482) 2019-05-17 09:36:07 -07:00
Hongarc
f86787239f docs: showcase user Ax (#1483) 2019-05-17 09:18:27 -07:00
Hongarc
4672a10e5f docs: update StreamPipes logo (#1481) 2019-05-17 09:17:04 -07:00
Endi
1ec4a9f999
chore: remove noWatch cli options because you cant disable watch in wds (#1480) 2019-05-17 21:51:16 +07:00
Endi
05ba7d835d
fix(v2): should be able to build even if static folder doesnt exist (#1479) 2019-05-17 18:15:48 +07:00
Wei Gao
0e5cac94cb docs(v2): CLI docs (#1476)
* WiP: CLI docs

* Tweak word choices for CLI docs

- Use the word swizzle directly
- Follow variable convention for shell

* Resolve docs discussion

* Update cli.md
2019-05-17 18:01:34 +07:00
Yangshun Tay
89ef4b9c44 feat(v2): move navbar config into themeConfig (#1477)
* feat(v2): move navbar config into themeConfig

* misc: fix tests

* fix: support external url for logo
2019-05-17 14:54:11 +07:00
Endi
6b75bb3270
fix: missing cli commands (#1478)
* fix: missing cli commands

* centralize
2019-05-17 14:27:53 +07:00
TurekBot
be149e182f docs: clarify location of sidebars.json (#1472)
In #1468 we clarify where the `docs` folder is. 
Here, we make it clear where `sidebars.json` is.
2019-05-16 19:29:02 -07:00
Hongarc
54a00e7a04 docs: normalized spelling of web server (#1473) 2019-05-16 19:28:22 -07:00
TurekBot
cb7c6f34b9 doc: mention HTTPS approach in tutorial git clone step (#1471)
* doc: change tutorial git to suggest HTTPS

Since we're instructing the user to create a new repository, it might be a safe bet to assume that they don't have their SSH keys set up. HTTPS might be a better option in this context.

* docs: keep ssh add https

@Hongarc said, "How about keep `SSH` and add `HTTPS`." This is one way to do that.

* Update tutorial-setup.md
2019-05-16 19:20:27 -07:00
TurekBot
a7b19c083a docs: add hint for linking dependencies time (#1470)
In this tutorial we assume that the user may or may not have used Node.js. It would follow then, based on how long it takes the "Linking dependencies" step to complete—243.61s for me—that we give them a hint that it might take a minute.
2019-05-16 19:17:47 -07:00
TurekBot
2a48b83ff2 docs: make it clear in the tutorial where the docs folder is (#1468)
* Make it clear where the `docs` folder is

It was not clear, to the beginner user—who this tutorial is for—where the `docs` folder was . The only reason I know this is because I'm a beginner user and I tried for too many minutes to find the `docs` folder inside the `website` folder. I had this assumption because the previous example is offered under the assumption that you're in the `website` folder.

Feel free to change the wording, I just want to make it clear where you should be looking, if you're new.

* Update tutorial-create-pages.md
2019-05-16 16:03:59 -07:00
Hongarc
f68312d90d docs: showcase user tipsi-stripe (#1423) 2019-05-16 13:38:52 -07:00
Hongarc
6767f8eb5d chore: fix typo (#1466) 2019-05-16 11:53:10 -07:00
Hongarc
b797973562 docs: sort user with alphabetical (#1465) 2019-05-16 11:52:42 -07:00
Hongarc
4f203a0b4f docs: showcase user Express Validator (#1464) 2019-05-16 11:06:52 -07:00
Endi
5685e8ab38
fix(v2): fix cannot import css from node_modules in userland (#1463) 2019-05-16 20:13:00 +07:00
endiliey
e873c14918 v2.0.0-alpha.16 2019-05-16 16:01:52 +08:00
Endi
e31bf50545
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies

* nits
2019-05-16 14:33:32 +07:00
Yangshun Tay
110126ab1d feat(v2): theme config for Footer (#1461)
* feat(v2): theme config for Footer

* fix: dont show footer if themeConfig.footer is undefined
* Import fresh docusaurus.config.js for better hot reload
2019-05-16 13:27:52 +07:00
endiliey
b91a0fd84a Chore(v2): use alias instead of relative path for blogpost 2019-05-15 23:22:25 +08:00
endiliey
86a1c3a1b1 v2.0.0-alpha.15 2019-05-15 21:56:12 +08:00
Endi
4a30bf8947
fix(v2): fix wrong dependency problem (#1460) 2019-05-15 20:54:41 +07:00
endiliey
8055d59131 v2.0.0-alpha.14 2019-05-15 19:37:46 +08:00
endiliey
4a4bf43e5d chore(v2): fix typo 2019-05-15 19:35:14 +08:00
endiliey
badb067b4b test(v2): test different type of sidebar item 2019-05-15 19:16:28 +08:00
Yangshun Tay
f47059b5bd feat(v2): list blog tags on posts (#1456)
* feat(v2): list blog tags on posts

* fix date handling on blog header

* fix console log error due to non unique key
2019-05-15 16:56:08 +07:00
Endi
55d7920825
fix(v2): handle non existent blog, docs, pages (#1459)
* fix(v2): handle non existent blog, docs, pages

* nits
2019-05-15 13:55:07 +07:00
Endi
f84abfe2d1
fix: right TOC should not strip special chars (#1458)
* fix: right TOC should not strip special chars

* nits
2019-05-14 23:55:35 +07:00
endiliey
a0089aa9f5 chore(v2): use remark-slug so that rightToc can benefit from it 2019-05-14 16:04:52 +08:00
Yangshun Tay
ba6724281e fix(v2): slugify tags 2019-05-13 21:31:12 -07:00
Yangshun Tay
fd270bdceb
feat(v2): blog tags (#1453)
* feat(v2): blog tags

* feat(v2): blog tags
2019-05-13 10:14:44 -07:00
endiliey
ffdd3e60fc chore(v2): remove docsearch a11y workaround 2019-05-13 22:19:31 +08:00
Endi
b61cab5e9b
chore(v2): better error message style (#1454) 2019-05-13 18:47:57 +07:00
Endi
f9c0cd2e56 fix(v2): transpiling, window scroll and console error (#1452) 2019-05-13 01:07:47 -07:00
Yangshun Tay
23b50f17a1
refactor(v2): blog data revamp (#1450)
* refactor(v2): blog data revamp

* fix(v2): fix incorrect blog total count

* misc: remove console.log

* feat(v2): export frontMatter as an object within MDX file (#1451)

* refactor. Don't confuse metadata & frontmatter

* export frontMatter in content itself

* nits

* nits name

* dont truncate first four lines in blog
2019-05-13 00:16:15 -07:00
Endi
070723697f fix(v2): docsearch a11y issue (#1449) 2019-05-11 08:47:22 -07:00
Endi
6136fbe1d2
feat(v2): meta description (#1447)
* feat(v2): meta description

* add description for blog as well

* fix non-descriptive text link

* remove font awesome

* switch front-matter -> gray-matter
2019-05-10 22:37:56 +07:00
endiliey
34195e4c30 chore: point website-1.x to correct version so that it can pick latest code 2019-05-10 17:59:06 +08:00