Samy Pessé
e6c6ec4293
Improve testing for sortPlugins
2016-06-08 14:57:54 +02:00
Soreine
a1d3acf065
Fix serve cli using new ConfigModifier.addPlugin
2016-06-08 10:42:27 +02:00
Samy Pessé
15123805d1
Fix linting error
2016-06-07 16:24:22 +02:00
Samy Pessé
23aecb4f2b
Improve output of page to text with frontmatter
2016-06-07 16:23:12 +02:00
Samy Pessé
f1d200b81b
Rollback frontmatter parsing to js-yaml to be browserify compatible
2016-06-07 14:32:12 +02:00
Samy Pessé
b566711ee1
Add method toText to Page
2016-06-07 12:51:35 +02:00
Samy Pessé
22da5aac11
Switch frontmatter parsing to gray-matter
2016-06-07 12:47:16 +02:00
Samy Pessé
f7b95102c5
Expose Page model
2016-06-07 12:36:32 +02:00
Samy Pessé
ca70c934d6
Split page parsing into parsePageFromString and parsePage
...
Add tests for parsePageFromString
2016-06-07 12:31:21 +02:00
Samy Pessé
1cc48fa314
Use Immutable instead of lodash for mergeDefaults
2016-06-07 12:06:29 +02:00
Samy Pessé
b63b5574d3
Only merge objects in mergeDefaults
2016-06-07 11:40:54 +02:00
Samy Pessé
67106e8698
Improve plugins config modifier
2016-06-07 11:06:53 +02:00
Samy Pessé
cedfa186f2
Remove merge-defaults dependency
2016-06-07 10:48:04 +02:00
Samy Pessé
7178ab1f82
Improve Config.toText to return only the required fields
2016-06-07 10:26:28 +02:00
Samy Pesse
bf895b707e
Improve addPlugin to not append default plugins to the list
2016-06-07 00:56:24 +02:00
Samy Pesse
996170a4ad
ConfigModifier.removePlugin should toggle off if default
2016-06-07 00:48:47 +02:00
Samy Pesse
aa66a4f928
Expose DEFAULT_PLUGINS as a list of PluginDependency
2016-06-06 22:04:13 +02:00
Samy Pesse
23010fa54a
Adapt tests for config modifiers
2016-06-06 21:22:44 +02:00
Samy Pesse
0baebc7979
Change config modifier to work on a config object
2016-06-06 21:20:00 +02:00
Samy Pesse
ddf0a41e29
Add method editPlugin to config modifiers
2016-06-06 19:42:44 +02:00
Samy Pesse
357e1e8e96
Add unit tests for postRender
2016-06-06 19:24:12 +02:00
Samy Pesse
30fbd22efe
Add modifier togglePlugin
2016-06-06 17:27:47 +02:00
Samy Pesse
29df73ba72
Add method "toText" to config
2016-06-06 17:16:53 +02:00
Soreine
f8676483c1
Default paths are relative to the current book
2016-06-06 16:55:00 +02:00
Johan Preynat
421fef6ebf
Search for README file in whole summary before inserting as first article
2016-05-30 15:07:39 +02:00
Johan Preynat
33406c3082
Merge pull request #1336 from GitbookIO/loading/themes
...
Load plugins before themes
2016-05-28 11:56:34 +02:00
Johan Preynat
c3851889b0
Throw an error if generateMock() cannot create the temp directory
2016-05-27 17:15:23 +02:00
Johan Preynat
4a5de2da6b
Use sortPlugins() in loadForBook()
2016-05-27 15:06:20 +02:00
Johan Preynat
1afb23cada
Add test file for sortPlugins()
2016-05-27 15:06:08 +02:00
Johan Preynat
a3b0f3f868
Export plugins sorting method to load plugins before themes
2016-05-27 15:05:55 +02:00
Johan Preynat
0aa32916d6
Add prefix for theme plugins as constant
2016-05-27 15:05:33 +02:00
Samy Pessé
5f3de0876f
Add header 'X-Current-Location' to serve and fix handling of directories
2016-05-27 12:01:28 +02:00
Samy Pessé
2ceab04d01
Increase timeout for tests of plugin installation
2016-05-27 11:40:05 +02:00
Samy Pessé
de37de44e8
Add tests for installation of all plugins
2016-05-27 11:18:12 +02:00
Samy Pessé
ccb87d5a13
Add unit tests for installPlugin
2016-05-27 11:10:39 +02:00
Samy Pessé
e2e0ca3f05
Add test for plugin version resolution
2016-05-27 10:54:56 +02:00
Samy Pessé
b33a79704b
Switch plugin installation and resolveVersion to use PluginDependency instead of Plugin
2016-05-27 09:38:23 +02:00
Samy Pessé
6def174b84
Merge pull request #1334 from ryanswanson/master
...
Fixed two issues for handling git URLs for plugins
2016-05-27 09:27:11 +02:00
Samy Pesse
b32685c698
Add test for custom glossary file
2016-05-26 22:01:40 +02:00
Samy Pesse
09b3618da8
Annotate glossary terms before resolving links
2016-05-26 21:38:27 +02:00
Samy Pesse
901328f247
Complete basic tests for glossary
2016-05-26 21:37:10 +02:00
Samy Pesse
b47ebaa9d9
Use real glossary name when annotating
2016-05-26 21:10:06 +02:00
Ryan Swanson
465e8d6c0a
Fixed two issues for handling git URLs for plugins that are published to git repositories rather than on npmjs.org.
...
Fixed issue in pluginDependency to dereference 'name' and 'version' using Immutable Map.get(...) accessors since config values are now wrapped by Immutable.fromJS(...) in config.js > setValue(...). Added associated unit test.
Fixed issue in resolveVersion where a plugin may be using a git URL rather than a semver for the version portion of the plugin config definition. In addition, refactored the resolveVersion function into a new module to allow for unit testing. Added associated unit test.
2016-05-26 14:30:29 -04:00
Samy Pessé
ecd86ec877
Method for parsing glossary when not listed in summary
2016-05-26 17:26:11 +02:00
Samy Pessé
5d7864154c
Start test for glossary generation
2016-05-26 17:25:49 +02:00
Samy Pessé
7b915428f7
Fix #1316 : fix regression for supporting uppercase filenames in structure
2016-05-26 11:07:13 +02:00
Samy Pesse
089815a8fd
Fix #1328 : fix crash when anchor links
2016-05-25 21:49:58 +02:00
Samy Pessé
fb930d889f
Fix anchor breaking links resolution
2016-05-24 15:32:30 +02:00
Samy Pessé
721a75309b
Fix #1316 : adapt regexp to handle dot in filenames
2016-05-23 13:00:01 +02:00
Samy Pessé
b856bff91b
Add failing test for #1316
2016-05-23 12:48:46 +02:00