Commit graph

10 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
8f9f7a5602 Fix correct linking when setting defaultVersionShown to non-latest version (#894) 2018-08-10 23:49:52 -07:00
Tom Auger
3f896c8e18 Fix Jest tests that fail on Windows (#896)
* Fix failing tests

* Suppress build output in build tests
2018-08-10 22:21:52 +07:00
Yangshun Tay
d2b30dc3ed Revert "Add ability to specify sub categories in sidebar.json (#891)"
This reverts commit 16087b4428.
2018-08-06 18:58:54 -07:00
Will Brock
16087b4428 Add ability to specify sub categories in sidebar.json (#891) 2018-08-06 18:58:48 -07:00
Endilie Yacop Sucipto
afec4bd47c
Refactor(server): share logic between server.js & generate.js (#856)
* nits too many comments

* Refactor to blog.getPages

* Refactor to getPost, fileToUrl, urlToFile

* Refactor redirectcomponent generation for docs

* nits & fix typo

* Refactor to blog.getMetadata

* Add test for getMetadata, fileToSUrl and urlToSource

* use includes() and add 'markup' naming for function
2018-07-24 13:37:52 +07:00
Sashank Thupukari
d3417b3bf2 Add autoprefixing to CSS pipeline (#867)
Add [autoprefixer](https://github.com/postcss/autoprefixer) as a final build step in the CSS pipeline.
2018-07-22 00:05:13 -07:00
Endilie Yacop Sucipto
d42ecb943f
Don't replace static assets linking in fenced code blocks (#864)
* Don't replace any relative links to static assets in a fenced code block

* revert unintended docs change

* improve regex

* remove test file :sob

* stronger regex test for replace assets

* super simplify solution
2018-07-21 20:54:45 +07:00
Endilie Yacop Sucipto
9f718a5097 Refactor + add more tests (Part 2) (#854)
* Refactor doc in server.js & generate.js

* Refactor finding metadata with find() & avoid param reassign

* Refactor replacing markdown link to html + add test

* Minify func to getFile & add test

* use ./ for md link as well

* nits & better test

* better mdToHtmlify

* babel-register on versions & write-translations to transpile ES6 in server/env.js

* better docs test & move out metadata to fixtures

* Update .babelrc
2018-07-16 01:45:23 -07:00
Endilie Yacop Sucipto
defcbcc8ee Refactor + add more tests (Part 1) (#847)
* Refactor mdToHtml out

* Refactor routing + move it to server instead of core

* Refactor & Add more tests for server utils

* Refactor isSeparateCss function from server & generate

* Refactor insertTableOfContents from server & generate + add tests

* undo small nits
2018-07-13 11:31:37 -07:00
Yangshun Tay
4267337fb0
Fix CSS tests (#839)
* Fix CSS tests

* Revamp

* -

* fix failing test

* add test for minifyCss with fixtures & snapshot

* remove unintended addition

* simplify the test.css
2018-07-10 10:42:32 -07:00