endiliey
b00b933ab9
docs nit
2018-09-06 01:59:16 +08:00
endiliey
87bd1bea05
nits & better console.log
2018-09-06 01:51:33 +08:00
hiluluke
6dcd24ec8d
Add docker related file to basic example
2018-09-03 13:21:03 +08:00
Endilie Yacop Sucipto
88904ab37b
fix: headerNav should link to 'blog/', not 'blog' for consistency ( #931 )
...
fix: headerNav should link to 'blog/', not 'blog' for consistency
2018-08-30 19:40:53 +08:00
Shubham Bansal
1a572757f1
feat: last updated time in docs ( #913 )
...
* Adding last updated time for docs
* Making file path general and other suggested changes
* Checking if time returned is null due to absence of git or some other issue
* Adding option to enable/disable update time feature and test-doc
* Adding simple unit tests for getGitUpdateTime()
* nits & rewrote failing test
* consistent test naming
* Adding optional updateEnableTime in documentation
* package-lock & yarn.lock
2018-08-29 21:15:18 +08:00
Laxman
cfabaedc99
Fix: conflicting strings issue in translations ( #917 )
...
* Fix conflicting strings issue in translations
* Preserve structure of `customTranslations`
* Use `deepmerge` to merge whole of `localized-strings`
* Simplify and make deep property access on an object safe
* Fix deep property accessor and rename it to idx
2018-08-29 00:04:02 +08:00
Endilie Yacop Sucipto
d18b09954b
Fix: transformation of url to cleanUrl / pretty url ( #923 )
...
* fix: pretty url should only remove html extension
* cleanUrl of '/index.html' should be '/'
2018-08-27 21:09:50 -07:00
Endilie Yacop Sucipto
2fa67bbc13
v1.3.3 ( #912 )
...
* v1.3.3
* nits changelog
* run npm update & yarn update
* run prettier
2018-08-23 11:48:44 +08:00
Mikalai Silivonik
6004fef658
fix: strict css/main.css routing ( #904 )
2018-08-22 16:38:44 +08:00
Miralem Drek
890054802d
Fix console error when onPageNav !== 'separate' ( #909 )
2018-08-21 10:00:04 -07:00
Yong-Siang Shih
8de57b5c0c
fix: add baseUrl to sitemap URLs ( #902 )
2018-08-12 18:49:45 +07:00
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
5fae14a2bf
fix: copy static image as it is if image compression fail ( #887 )
...
* fix: fail to copy static image due to image compression on build
* add changelog
2018-08-04 22:40:36 +08:00
Endilie Yacop Sucipto
18158d6abc
fix: truncate blogpost properly with truncate-html ( #880 )
...
* fix: truncate blogpost properly with truncate-html
* revert test file change
* chore: truncate blogpost for feed changelog
2018-08-02 15:16:26 +08:00
Endilie Yacop Sucipto
42a96696a4
chore: delete unused/ old file ( #881 )
2018-08-02 00:52:50 +08:00
Endilie Yacop Sucipto
a6db22b6ff
support 'text' language for no syntax highlighting ( #875 )
2018-07-28 00:55:27 +07:00
Drew Ballance
0c09cc01cb
Correct Prism CSS class for code blocks ( #870 )
...
* Correct Prism CSS class for code blocks
* remove prism css theme that conflicts hljs theme
2018-07-25 13:00:17 +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
03e237abda
Fix phrase emphasis not italicized ( #850 )
...
* Fix phrase emphasis not italicized
* use it in base css instead:
* i tag as well
* Update main.css
2018-07-14 22:41:34 -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
a7a214fb3a
ESLintify Part 3 ( #846 )
...
* ESLintify Part 3
* ESLintify Part 3
* ESLintify Part 3
2018-07-11 18:21:31 +08:00
Yangshun Tay
5ac2cee658
ESLintify Part 2 ( #841 )
...
* ESLintify Part 2
* Fix
* Fix tests
* Fix tests
* Fix tests
2018-07-10 21:53:08 -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
Endilie Yacop Sucipto
8cd4b4fca6
Fix wrong CSS language prefix for fenced blocks ( #842 )
2018-07-08 20:17:58 -07:00
Yangshun Tay
b5bf53ef40
Add in missing Babel plugins for write-translations
2018-07-08 10:38:28 -07:00
Yangshun Tay
ebb86275d3
Use Babel in write-translations script
2018-07-08 10:26:29 -07:00
Yangshun Tay
e8e3f42685
ESLintify Part 1 ( #837 )
...
* ESLint-ify
* Allow empty try/catch
* Escape regexp
2018-07-08 09:13:18 -07:00
Yangshun Tay
128dbfca0a
Tidy up ESLint usage ( #836 )
...
* Use Airbnb ESLint
* Turn off rules
* Add back
* add website to eslint precommit
* Add back
* remove useless escape
2018-07-07 15:25:14 +07:00
Endilie Yacop Sucipto
3566483aa5
Fix wrong sitemap for alternate URL ( #828 )
2018-07-04 11:13:30 -07:00
Endilie Yacop Sucipto
9c070f020d
Publish-gh-pages should display the correct commit that triggers it ( #829 )
2018-07-04 11:12:41 -07:00
Endilie Yacop Sucipto
e619884921
Open browser with correct baseurl ( #819 )
...
* open browser with correct baseurl
* nits
2018-07-01 09:42:52 -07:00
Endilie Yacop Sucipto
60852a2b2e
Fix missing fblike button in blog ( #821 )
...
* fix missing fblike in blog
* add comment
* comment in js instead
* fb-comments too
* comment the right way
2018-07-01 09:42:36 -07:00
Endilie Yacop Sucipto
21dcea2a31
Integrate eslint & precommit to codebase ( #815 )
...
* add eslint, precommit & refactor
* fix exit code 127
* modify contributing.md & add package-lock
* use .eslintrc.js
2018-07-01 12:27:31 +08:00
Cheng Lou
97eaaad744
Fix edit button alignment ( #817 )
2018-06-30 19:41:46 -07:00
Yangshun Tay
0b10b193a8
Fix newly discovered CSS issues ( #812 )
2018-06-30 00:27:33 -07:00
Endilie Yacop Sucipto
e9eef39760
Fix & refactor server routing + add tests ( #799 )
...
* Fix bad routing regex for sitemap & feed
* add tests for sitemap & feed
* use next middleware function if file nto found
* add pages routing & test
* refactor + add more test for page routing
* extension-less url routing + test
* refactor out requestFile
* add dot routing + test to handle special case like http://localhost:3000/blog/2018/05/27/1.13.0
* exit properly
* add more test for sitemap
* update nits from my phone
2018-06-29 16:15:34 +08:00
Yangshun Tay
e9f290f788
Fix styles for headerTitle ( #811 )
...
* Fix styles for headerTitle
* Update main.css
2018-06-28 00:21:25 +07:00
Endilie Yacop Sucipto
f598e2583f
handle promise error & exit properly ( #809 )
2018-06-27 08:45:08 -07:00
Endilie Yacop Sucipto
418c840ad4
fix wrong sitemap urls ( #801 )
2018-06-26 13:02:46 +07:00
Ng Yik Phang
76870c6a37
Prevent page from scrolling to top when clicking languages button ( #802 )
2018-06-24 22:10:06 -07:00
Yangshun Tay
e4b9b9861b
Show scrollbar only when sidebar is too long ( #800 )
2018-06-25 12:05:21 +07:00
Endilie Yacop Sucipto
66b2033546
Fix bad routing regex for docs & blogs ( #795 )
...
* fix bad routing regex for docs & blogs
* extract to routing.js & add test
* add more test case
* address code review
* prettier
2018-06-24 14:10:32 +07:00
Yangshun Tay
5a8e9a9ff1
Exclude vendor dir from directory tree printing ( #798 )
...
* Exclude vendor dir for directory tree printing
* Upgrade tree-node-cli
* Upgrade tree-node-cli
* Update package-lock.json
2018-06-23 23:47:48 -07:00
Endilie Yacop Sucipto
9ff5328c88
fix algolia version to use the correct version info, not 'current' ( #797 )
2018-06-24 02:01:23 +07:00