Endilie Yacop Sucipto
d04b3ca87b
Enable sub-directories in docs/ ( #705 )
2018-06-07 07:41:28 -07:00
Endilie Yacop Sucipto
31f0c27f81
Enable clean / extension-less url ( #677 )
2018-06-06 13:37:49 -07:00
Endilie Yacop Sucipto
d28b864a59
Don't start server if versions.js is missing but versioning is enabled ( #714 )
...
* don't start server if versions.js missing but versioning is enabled
* refactor
* fix nits
* refactor & address review
2018-06-02 23:45:36 -07:00
Endilie Yacop Sucipto
b00e9d14e2
Fix assets not found in Express server ( #720 )
2018-06-02 11:28:04 -07:00
Endilie Yacop Sucipto
72f4f36939
Enable setting of title for custom pages
...
* allowing custom title on page component
* Update about-slash.js
* Update help.js
* Update users.js
* Update versions.js
2018-05-30 21:37:38 -07:00
artiebits
b5fd7bae73
Don't watch node_modules dir in dev server mode ( #702 )
...
* add a negate pattern for a watcher
* replace hardcoded docs path with getDocsPath()
2018-05-25 22:34:03 -07:00
Endilie Yacop Sucipto
24da6bfba0
Fix typo from #490 ( #676 )
...
`'en'` is written as `en`
2018-05-19 07:45:05 -07:00
Amy Lam
f9a09072e3
Add LiveReload ( #663 )
2018-05-17 16:17:56 -07:00
Ahmad Alfy
ab6bab9f8d
[Feature] Introducing image compression using imagemin ( #654 )
...
* Introduce imagemin for compressing images
* Replace original images with the optimized ones
* Add imagemin-svgo to dependencies
* Remove console statement, replace let with const
* Replace let with const
* Add --skip-image-compression
* Run Prettier
2018-05-09 16:59:36 -07:00
Yangshun Tay
1a6f2fc51c
Add open in browser functionality ( #643 )
2018-05-07 09:46:14 -07:00
Yangshun Tay
8d676e6a5a
Extract blog post truncation logic and add tests ( #640 )
2018-05-06 09:15:18 -07:00
Matthew Francis Brunetti
cf59f72ecd
Windows compatibility fix ( #583 )
2018-05-05 18:29:28 -07:00
Erin Teo
5771549e75
Rename latestVersion to defaultVersion ( #639 )
...
* Rename lastVersion to defaultVersion
* Added defaultVersionShown to site-config doc
* Remove defaultVersionShown from siteConfig
* Update api-site-config.md
2018-05-05 17:24:39 -07:00
Joel Marcey
dbc597bfd7
Allow configuring what version is shown by default ( #554 )
...
* [RFC] Allow configure what version is shown by default
Seeing if this will work - it won't work if you want to show `master` or `next` by default.
Only named version that would exist in `versioned_docs`.
If this does work and we want to go with it - `latestVersion` in many places seems like a
misnomer. `defaultVersion` would be better or something
* Remove from docusaurus siteconfig
2018-05-04 10:00:46 -07:00
Sviatoslav
9c98142fea
Ensure anchor links are unique per document ( #574 )
2018-05-03 19:36:12 -07:00
Paulus Schoutsen
6c9c7e5de5
Generate sitemap if any blog post or page exists ( #610 )
2018-04-27 23:09:47 -07:00
Steven Zeck
df6f6df333
Do not ignore 'custom_edit_url' ( #604 )
2018-04-25 10:40:53 -07:00
Yangshun Tay
d3fd347d21
Regenerate blog metadata on request to blog ( #590 )
2018-04-22 20:46:16 -07:00
Christopher Chedeau
c400636fb6
Do not ignore the layout
header ( #587 )
...
#347 added support for warning for unknown fields but didn't take into account `layout` which was added by #128
2018-04-20 09:19:57 -07:00
Yangshun Tay
159b80df94
Use cssnano to minify main CSS file ( #569 )
...
* Add cssnano to CSS generation
* Add babel-polyfill
* Call cssnano at the end
* Fix tests
* Add babelrc
2018-04-16 21:31:01 -07:00
Yangshun Tay
946e2cef90
Add <doctype HTML> to HTML pages ( #566 )
...
* Add doctype to static rendering
* Set content-type for CSS
2018-04-15 15:50:43 -07:00
Joel Marcey
86edbec1d0
Split out @generated string ( #553 )
...
Nuclide treats files with @generated as read-only. This can fix that.
2018-04-12 14:11:01 -07:00
Joel Marcey
71278431f1
Add hide_title to metadata check whitelist
2018-04-11 18:02:25 -07:00
António Afonso
ad5b8b92b4
Ignore and warn about unsupported header fields ( #347 )
...
Unsupported header fields might mess up the creation of metadata.js (e.g.: next).
Skip unknown header fields and log a warn about them.
2018-04-11 17:45:03 -07:00
Yangshun Tay
6500f9bacf
More doc improvements ( #532 )
...
* Generic doc improvements
* Convert to Markdown
* Remove whitespace
* More typo fixes
2018-04-07 21:16:29 -07:00
John Eismeier
fc6e3b7311
Fix two typos ( #530 )
2018-04-06 10:26:31 -07:00
Joel Marcey
bc777a8e65
Remove slash from join path in server.js
2018-03-13 09:12:30 -07:00
Sunny Luo
4a4fea7d8a
Fix wrong versioned_docs file path ( #501 )
2018-03-13 09:05:26 -07:00
Joel Marcey
cbdab2ba11
Use Path module functions and properties in server and generate ( #490 )
2018-03-12 16:01:40 -07:00
Elian Ibaj
48ee457ec9
Add active link classes to site navigation menu ( #463 )
2018-03-04 08:53:31 -08:00
Sunny Luo
4a10be8002
Fix wrong latestVersion in server.js ( #464 )
2018-02-19 19:50:05 -08:00
Joel Marcey
ec6ff9284c
Allow multiple -
in a version string ( #457 )
...
* Allow multiple `-` in a version string
Right now we were assuming that there would be no `-` in a version.
That was breaking things.
This allows more flexibility for versions like:
1.0.0-beta.2
Ref #455
Fixes #450
* Check more specific strings - need to look for the original_id
2018-02-17 12:25:46 -08:00
Joel Marcey
1388e13795
Don't throw if a doc hasn't been versioned yet ( #455 )
...
Instead of throwing, return `null` because that means we have a
new doc in our versioning sequence
(Also, cleaned up a bit of code as I researched this)
Partial Fix To #450
2018-02-16 19:16:38 -08:00
Tom Auger
2d7274f6fe
Blog feed fixes #370 ( #407 )
...
* Refactor markdown rendering into separate module
* Render blog feed description in html
2018-02-11 08:05:58 -08:00
Samina Fu
a08b3cc921
Remove dead code in sitemap.js, close #429 ( #430 )
...
Closes #429
2018-02-02 19:45:00 -08:00
Eric Nakagawa
dfb70e1829
Allow controlling number of blog posts in Recent Blogs sidebar. ( #432 )
...
New feature. Allow controlling number of blog posts in Recent Blogs sidebar. Can have qty or ALL.
2018-02-02 08:11:51 -08:00
Héctor Ramos
c99cdefd3a
Fix links in blog Atom feed ( #421 )
...
The root URL was missing the baseURL portion. This is fine when a site is hosted on a custom URL such as docusaurus.io, because the generated URL will be valid (docusaurus.io/blog), but it breaks when the site is hosted on GitHub Pages (the React Native feed was using facebook.github.io/blog as the rootURL).
* Fix link to header image
2018-01-31 20:04:35 -08:00
Joel Marcey
8c71572d7a
Remove rogue console.log for the status code
2018-01-29 21:05:28 -08:00
Sunny Luo
43e80fcea7
Fix regex for non english versioned docs ( #412 )
2018-01-23 13:23:33 -08:00
Joel Marcey
c81609d393
Send status code to server response for redirects ( #408 )
...
Also simplified the logic a bit to reduce duplication
Closes #404
2018-01-23 13:13:25 -08:00
jonathan-cowling
a241a46669
Make font-family as configurable parameter( #220 ) ( #294 )
...
We look for fonts object within siteConfig.js
2018-01-21 19:54:52 -08:00
Richard Zhang
e8599c05a8
Remove duplicate blog.xml route ( #364 )
2018-01-11 16:42:39 -08:00
Ika
ba99660a3c
fix(feed): add missing slash for image url ( #365 )
2018-01-11 16:40:29 -08:00
Dániel Tar
654916ae98
Fix build on Windows ( #381 )
...
Use `path.dirName` instead of a `file.replace` on regex'd replaced string
2018-01-08 15:44:50 -08:00
Joel Marcey
5a77f186b9
Check English translation if language doesn't exist ( #361 )
...
Need this because of https://github.com/facebook/Docusaurus/pull/316
2017-12-27 15:18:58 -08:00
Joel Marcey
5bb062b6f0
Versioning ids should be based on whether translation is enabled ( #333 )
...
* Versioning ids should be based on whether translation is enabled
Ref: ff117979c6
and a5e963dba1
Tested locally on:
Docusaurus
Relay
Test site from `npm run examples`
* Prettier
2017-12-20 19:47:51 -08:00
Joel Marcey
665b2da09f
Prettier fix for ce338fff64
2017-12-20 10:07:57 -08:00
Ricky Vetter
ce338fff64
Merge pull request #275 from rickyvetter/wrapPagesHTML
...
add wrapPagesHTML which renders html snippets in pages inside of a header + footer
2017-12-20 10:05:21 -08:00
Joel Marcey
db65f4b7fd
Prettier fix for b96fae035f
2017-12-20 10:03:24 -08:00
António Afonso
b96fae035f
Guard against lack of layouts
in siteConfig.js ( #330 )
...
If a document states a `layout` in its header but `layouts` doesn't exist in `siteConfig.js` the doc would not render.
2017-12-20 09:55:10 -08:00