Commit graph

441 commits

Author SHA1 Message Date
Endi
9829f56b1e
feat(v2): docs versioning ❄️🔥 (#1983)
* wip: versioning

* wip again

* nits lint

* refactor metadata code so that we can have inobject properties optimization, fix typing

* remove buggy permalink code

* modify versioned docs fixture such that foo/baz only exists in v1.0.0

* refactor metadata.ts so that there is less transformon object

* more refactoring

* reduce test fixtures, refactoring

* refactoring readability

* finish metadata part

* refactor with readdir

* first pass of implementation

* fix mdx laoder

* split generated routes by version for performance & smaller bundle

* test data for demo

* refactor with set

* more tests

* typo

* fix typo

* better temporary ui

* stronger typing & docsVersion command

* add 100% test coverage for docsVersion command

* more test and delete manual docs cut

* cut 2.0.0-alpha.35 docs

* cut alpha.36 instead

* copyright

* delete versioned docs

* stronger test on metadata

* update typo
2019-11-22 16:17:40 +07:00
endiliey
c413cff212 v2.0.0-alpha.36 2019-11-22 12:41:22 +07:00
endiliey
21e95f8640 chore(v2): docs for 2.0.0-alpha.36 2019-11-22 12:39:02 +07:00
Yangshun Tay
65965e060a misc(v2): change blog front matter to snake_case (#1989)
* misc(v2): change blog front matter to snake_case

* Fix blog image url

* Add docs for change

* More migration docs
2019-11-19 15:08:53 +07:00
Yangshun Tay
edf4c16c93 feat(v2): allow hiding docs table of contents (#2012)
* feat(v2): allow hiding docs table of contents

* move to frontmatter
2019-11-19 15:08:45 +07:00
Yangshun Tay
c16407c95a
docs(v2): misc updates (#2010) 2019-11-17 06:43:41 -08:00
Yangshun Tay
7abe643f8d
misc(v2): branding update (#2009) 2019-11-17 06:43:32 -08:00
yangshun
29ce98c63a docs(v2): misc updates 2019-11-17 05:44:21 -08:00
endiliey
6204d9a9ec v2.0.0-alpha.35 2019-11-17 16:51:57 +07:00
endiliey
8c3cae35e3 chore(v2): changelog 2019-11-17 16:51:02 +07:00
Alexey Pyltsyn
79f3b9562c fix(v2): fix browser window menu icon on smaller screen (#2002) 2019-11-16 13:09:30 -08:00
Alexey Pyltsyn
472a1a660c docs(v2): fix syntax highlighting for YML code blocks (#1988) 2019-11-13 15:43:01 -08:00
Alexey Pyltsyn
b1867e99be
fix(v2): remove obsolete iframe attrs (#1986) 2019-11-14 01:12:36 +03:00
Alexey Pyltsyn
0f30077e63 feat(v2): add FB link to footer (#1982) 2019-11-13 23:06:54 +07:00
Vincent van der Walt
245b50f6e0 docs(v2): Add section to blog document about feed location (#1976)
* Add section in blog doc about feed location

* fix fenced code type
2019-11-13 13:10:20 +07:00
Jamie Davenport
ffa6b71b1d docs(v2): update configureWebpack utility functions (#1970) 2019-11-12 17:35:12 +07:00
Alexey Pyltsyn
6546c194fb feat(v2): add ability specify link in footer logo (#1965)
* feat(v2): add ability specify link in footer logo

* Refactor according review
2019-11-12 16:25:06 +07:00
Eric Carboni
b027db1b34 docs(v1): remove exclusive language (#1961)
* Initial commit to replace easy, easily, simple, just, of course

* Revert ordered list change
2019-11-11 14:06:54 -08:00
endiliey
f1180d0eb6 v2.0.0-alpha.34 2019-11-11 21:35:03 +07:00
endiliey
5c652aacba chore(v2): 2.0.0-alpha.34 changelog 2019-11-11 21:34:41 +07:00
Endi
6a3efd5f3d
breaking(v2): editUrl should point to website instead of docsDir to support editUrl in versioning/trans (#1958) 2019-11-11 21:24:04 +07:00
Alexey Pyltsyn
9e290c9b43 feat(v2): add ability disable dark mode toggle (#1956) 2019-11-11 04:41:54 -08:00
Endi
3be2e86546
chore: bump dev dependencies (#1955)
* chore: bump devdeps

* upd infima url
2019-11-11 17:44:26 +07:00
Yangshun Tay
72792a1e5c
fix(v2): update Infima website URL (#1953) 2019-11-09 01:09:41 +08:00
endiliey
87f864e5ba chore(v2): changelog for 2.0.0-alpha.33 2019-11-08 13:45:02 +07:00
endiliey
e6b077410c v2.0.0-alpha.33 2019-11-08 13:27:03 +07:00
Pawel Kadluczka
ff83e6f8bc feat(v2): Implement plugin creating feed for blog posts (#1916)
* feat(v2): Implement feed for blog posts

Fixes: #1698

Test plan:
- added tests

Ran `yarn build` on website with the following config (and disabled blog
from preset-classic):

```js
[
'@docusaurus/plugin-content-blog',
  {
    path: '../website-1.x/blog',
    feedOptions: {
      copyright: 'Copy',
      type: 'atom',
    },
  },
],
```
which genereted the following feed:
```xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://v2.docusaurus.io/blog</id>
    <title>Docusaurus Blog</title>
    <updated>2018-12-14T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://v2.docusaurus.io/blog"/>
    <subtitle>Docusaurus Blog</subtitle>
    <icon>https://v2.docusaurus.io/img/docusaurus.ico</icon>
    <rights>Copy</rights>
    <entry>
        <title type="html"><![CDATA[Happy 1st Birthday Slash!]]></title>
        <id>Happy 1st Birthday Slash!</id>
        <link href="https://v2.docusaurus.io/blog/2018/12/14/Happy-First-Birthday-Slash"/>
        <updated>2018-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![First Birthday Slash](/img/docusaurus-slash-first-birthday.svg)]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Towards Docusaurus 2]]></title>
        <id>Towards Docusaurus 2</id>
        <link href="https://v2.docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2"/>
        <updated>2018-09-11T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Docusaurus was [officially announced](https://docusaurus.io/blog/2017/12/14/introducing-docusaurus) over nine months ago as a way to easily build open source documentation websites. Since then, it has amassed over 8,600 GitHub Stars, and is used by many popular open source projects such as [React Native](https://facebook.github.io/react-native/), [Babel](https://babeljs.io/), [Jest](https://jestjs.io/), [Reason](https://reasonml.github.io/) and [Prettier](https://prettier.io/).]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[How I Converted Profilo to Docusaurus in Under 2 Hours]]></title>
        <id>How I Converted Profilo to Docusaurus in Under 2 Hours</id>
        <link href="https://v2.docusaurus.io/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus"/>
        <updated>2018-04-30T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[> _“Joel and I were discussing having a website and how it would have been great to launch with it. So I challenged myself to add Docusaurus support. It took just over an hour and a half. I'm going to send you a PR with the addition so you can take a look and see if you like it. Your workflow for adding docs wouldn't be much different from editing those markdown files.”_]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing Docusaurus]]></title>
        <id>Introducing Docusaurus</id>
        <link href="https://v2.docusaurus.io/blog/2017/12/14/introducing-docusaurus"/>
        <updated>2017-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![Introducing Slash](/img/slash-introducing.svg)]]></summary>
    </entry>
</feed>
```

* new feedOptions type 'all' and use correct path
2019-11-06 14:45:31 +07:00
Alexey Pyltsyn
c507028cb0
feat(v2): add ability default lang for code blocks (#1910)
* feat(v2): add ability default lang for code blocks

* Add support for CodeBlock

* changelog

* more changelog

* Add checks

* docs

* docs

* Fix changelog

* revert config

* Update theme-classic.md

* Update packages/docusaurus-theme-classic/src/theme/CodeBlock/index.js

Co-Authored-By: Endi <endiliey@gmail.com>
2019-11-05 10:36:22 +03:00
endiliey
5909b49915 chore(v2): changelog 2019-11-04 12:56:10 +07:00
endiliey
cd9e2f2346 v2.0.0-alpha.32 2019-11-04 12:45:05 +07:00
Alexey Pyltsyn
146a3019fb fix(v2): fix browser window background (#1936) 2019-11-04 08:35:54 +08:00
Kate Bartolo
3f8cb78ba9 docs(v2): theme, plugin, and preset config (#1929)
* docs(v2): theme, plugin, and preset config

* change tabs to spaces

* change theme example
2019-11-03 17:59:39 +08:00
Alexey Pyltsyn
b8335fe925 docs(v2): fix typos (#1930) 2019-11-02 08:12:04 +08:00
Joel Ibaceta
472c8fc176 docs(v2): fix typo in advanced plugins (#1926) 2019-11-01 08:54:41 +08:00
Endi
16f10dd32a
docs(v2): Redirect component for easy redirect (#1913)
* docs(v2): Redirect component for easy redirect

* typo

* docs

* Update website/docs/docusaurus-core.md

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

* Update docusaurus-core.md
2019-10-30 10:19:30 +07:00
Endi
64871b76e4 fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined (#1909)
* fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined

* nits

* Docs docs

* inaccuracy

* changelog

* nits
2019-10-30 08:51:53 +08:00
Dylan Myers
f853171791 docs(v2): add windows batch instructions for publishing to gh pages (#1914)
* docs: add windows batch instructions for publishing to gh pages

* docs: add windows batch instructions on the v2 website
2019-10-29 23:49:01 +07:00
Yangshun Tay
f635f9aba2
docs(v2): code block line highlighting (#1904)
* docs(v2): code block line highlighting

* misc: update CHANGELOG

* misc: respond to review

* docs: add line highlighting to the template
2019-10-29 14:59:24 +08:00
Yangshun Tay
b6667a072c misc(v2): improve index page SEO score 2019-10-29 00:06:39 +08:00
Endi
2bbfbf88d6
docs(v2): update plugins, presets and themes docs (#1889)
* docs(v2): update plugins, presets and themes docs

* ideal image plugin

* proof reading

* Merge master
2019-10-26 15:10:48 +07:00
endiliey
242c9e0c29 chore(v2): update docs and changelog 2019-10-26 14:16:04 +07:00
endiliey
d4342dcbf3 v2.0.0-alpha.31 2019-10-26 14:12:15 +07:00
Endi
a9f752cf23
docs(v2): update config docs (#1885) 2019-10-25 23:35:02 +07:00
Endi
a149f775ad
docs(v2): add docs on useful client api (#1890)
* docs(v2): add docs on useful client api

* Update docusaurus-core.md

* Update website/docs/docusaurus-core.md

* Update website/docs/docusaurus-core.md

* Update website/docs/docusaurus-core.md

* Update website/docs/docusaurus-core.md
2019-10-25 23:25:43 +07:00
Alexey Pyltsyn
11548da4cd docs(v2): fix format inline code (#1888) 2019-10-25 21:46:06 +07:00
endiliey
6afe6b3559 chore(v2): update showcase and broken link 2019-10-25 13:29:28 +07:00
Alexey Pyltsyn
ce6a725ff5 feat(v2): add ability expand all items in doc sidebar (#1876)
* feat(v2): add ability expand all items in doc sidebar

* Fix tests

* Refactor: use themeConfig

* Improve docs

* Revert unnecessary  changes

* Refactor: better consistency

* Revert extra change

* Refactor: use useDocusaurusContext to get config value
2019-10-24 21:36:46 +07:00
Tien Vo Xuan
91703eb728 docs(v2): showcase user mbt-bundle (#1875) 2019-10-23 22:03:37 -07:00
endiliey
b65c1b2242 v2.0.0-alpha.30 2019-10-22 12:23:55 +07:00
Endi
4c4e6ad773
fix(v2): fix babel transpilation include/exclude logic (#1868)
* fix(v2): fix babel transpilation include/exclude logic

* nits

* optimize

* docs migration before alpha.30 hotfix
2019-10-22 12:17:00 +07:00