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
Samy Pessé
484a306adb
Fix error with isInRoot when empty root
2016-05-20 21:41:02 +02:00
Samy Pessé
5bfc9f2f56
Fix PathUtils.isInRoot on windows
2016-05-20 21:37:22 +02:00
Samy Pesse
3234c1e03f
Fix #1310 : enforce language config in language books
2016-05-19 00:15:09 +02:00
Samy Pesse
3e4241fc88
Implement renderInline method and missing output methods for API
2016-05-17 19:45:48 +02:00
Samy Pesse
a5ae79604c
Implement renderBlock method for plugin API
2016-05-17 19:30:28 +02:00
Soreine
167d3957bf
Expose lookup method for parsable files
2016-05-17 12:48:03 +02:00
Samy Pessé
05403f527d
Fix bug that can happen when configuration file doesn't exist
2016-05-12 16:45:09 +02:00
Samy Pessé
53c72f0806
Add api method getPageByPath for plugins
2016-05-12 16:29:36 +02:00
Samy Pessé
c8c2a61f96
Fix #1289 : add option to filter files when listing using fs.listAllFiles
2016-05-12 16:10:11 +02:00
Samy Pessé
08d780d1f6
Fix #1300 : parse page frontmatter and content when listing pages
2016-05-12 15:48:02 +02:00
Samy Pessé
2e74fafa36
Add template method "getPageByPath"
2016-05-12 15:12:08 +02:00
Samy Pessé
28ac9ab88a
Fix #1299 : pass fileExists as global function for template, accept null/undefined as param
2016-05-12 15:04:30 +02:00
Samy Pessé
26acab4dfb
Fix generation of ebook for multilingual book (gitbook pdf)
2016-05-12 14:29:25 +02:00
Samy Pessé
d4b562e001
Fix get of cover for multilingual books
2016-05-12 14:12:43 +02:00
Soreine
61956e0646
Revert "Extend Book.getLanguageBook"
...
This reverts commit 7892259fe6 .
2016-05-12 14:08:29 +02:00