Commit Graph

354 Commits

Author SHA1 Message Date
Stéphane Goetz
14b50c7c45 Handle absolute paths, fixes #407 2016-09-21 23:10:10 +02:00
Stéphane Goetz
f8806b18b7 Merge branch 'master' of https://github.com/eteeselink/daux.io into development
* 'master' of https://github.com/eteeselink/daux.io:
  Add support for anchors on internal links

# Conflicts:
#	libs/ContentTypes/Markdown/LinkRenderer.php
2016-09-21 21:49:55 +02:00
Stéphane Goetz
519e85b5dc Add a confluence configuration checker. Allow configuration overrides on daux command 2016-09-15 17:20:24 +02:00
Stéphane Goetz
a40769b48a Fix confluence links bug 2016-09-15 00:49:48 +02:00
Stéphane Goetz
aa4ad02b46 Handle custom themes on serve fixes #396 2016-09-12 23:58:58 +02:00
Stéphane Goetz
7ee564c667 Allow for custom themes on generate with global installation, partly fixes #396 2016-09-06 23:11:32 +02:00
Egbert Teeselink
047610f314 Add support for anchors on internal links 2016-08-25 23:15:15 +02:00
Stéphane Goetz
e9cd1e3c27 Remove ribbon, add "Edit on Github" links, fixes #398 2016-08-17 00:18:34 +02:00
Stéphane Goetz
8ac4137007 Show broken links in red, external link with an arrow. fixes #395 2016-08-16 23:25:06 +02:00
Stéphane Goetz
67c5fa2f7e Read legacy "inherit_index" value correctly 2016-08-04 22:10:36 +02:00
Stéphane Goetz
647c0beb3b Fix the URL Generator for inherit_index, fixes #381 2016-08-02 23:39:57 +02:00
Stéphane Goetz
c450903b3a Added a bit of documentation 2016-07-29 23:46:57 +02:00
Stéphane Goetz
a6783d41e8 Code Style fix 2016-07-29 23:28:45 +02:00
Stéphane Goetz
6f66600fbd Fix the fix 2016-07-29 23:25:43 +02:00
onigoetz
6d871c3f62 Applied fixes from StyleCI 2016-07-29 23:21:19 +02:00
Stéphane Goetz
2081acc3c5 Document the new command line tool 2016-07-29 23:20:01 +02:00
Stéphane Goetz
08a5fc3f56 Compiling latest .phar 2016-07-29 22:46:48 +02:00
Stéphane Goetz
948f2aaa39 Fix bugs reported by scrutinizer 2016-07-29 22:38:03 +02:00
Stéphane Goetz
fb5fb41e96 Merge branch 'development'
* development:
  Add a refrence to themes_path
  realpath returns the canonicalized absolute pathname
  Dont set theme-variant if there is none
  Add Vulkan Tutorial to list of sites using the framework
  Fix autoloading and prioritize getting it as a dependency
  Change the way the commands are declare, separate "generate" and "serve"
  Support BOM at the beginning of content, fixes #372
  Applied fixes from StyleCI
  Add the daux --serve command to simplify writing documentation and reading.
  Fix the way front matter is handled, fixes #345
  Create a "daux" binary
  Add badges and code coverage
  Mark as non compatible with PHP 5.4
  Applied fixes from StyleCI
  Added .travis.yml file
  Build latest phar
  Add the ability to do relative links in documentations
  Compile latest version
  Minify files
  Remove Bootstrap and simplify styles

# Conflicts:
#	libs/DauxHelper.php
#	libs/bootstrap.php
2016-07-29 22:00:43 +02:00
Stéphane Goetz
341ec96cf8 Change the way the commands are declare, separate "generate" and "serve" 2016-07-29 21:56:10 +02:00
Stéphane Goetz
64edc31122 Support BOM at the beginning of content, fixes #372 2016-07-29 21:56:10 +02:00
onigoetz
f7b47a6c19 Applied fixes from StyleCI 2016-07-29 21:56:10 +02:00
Stéphane Goetz
18e10cacc8 Add the daux --serve command to simplify writing documentation and reading. 2016-07-29 21:56:10 +02:00
Stéphane Goetz
97c4014926 Fix the way front matter is handled, fixes #345 2016-07-29 21:56:10 +02:00
Stéphane Goetz
3375f8ff2b Create a "daux" binary
Refactored Daux a bit to allow generating documentation from working directory
2016-07-29 21:56:10 +02:00
onigoetz
2314516ce9 Applied fixes from StyleCI 2016-07-29 21:56:09 +02:00
Stéphane Goetz
c1dd70748f Add the ability to do relative links in documentations 2016-07-29 21:56:09 +02:00
Stéphane Goetz
05a39eeeff Remove Bootstrap and simplify styles 2016-07-29 21:56:09 +02:00
Stéphane Goetz
f4cfa35c59 Merge branch 'master' into development
* master:
  Add a refrence to themes_path
  realpath returns the canonicalized absolute pathname
  Dont set theme-variant if there is none
  Add Vulkan Tutorial to list of sites using the framework
2016-07-29 21:53:29 +02:00
Sam Hermans
9f3a31aeab realpath returns the canonicalized absolute pathname 2016-07-29 21:52:26 +02:00
Sam Hermans
15c4da62d9 Dont set theme-variant if there is none 2016-07-29 21:52:26 +02:00
Stéphane Goetz
b9d99d1388 Fix autoloading and prioritize getting it as a dependency 2016-07-29 08:55:08 +02:00
Stéphane Goetz
06f0945cab Change the way the commands are declare, separate "generate" and "serve" 2016-07-29 08:02:35 +02:00
Stéphane Goetz
77d7989f3b Support BOM at the beginning of content, fixes #372 2016-07-29 08:02:35 +02:00
onigoetz
68a91159e6 Applied fixes from StyleCI 2016-07-29 08:02:35 +02:00
Stéphane Goetz
ec775de695 Add the daux --serve command to simplify writing documentation and reading. 2016-07-29 08:02:35 +02:00
Stéphane Goetz
b090571e4b Fix the way front matter is handled, fixes #345 2016-07-29 08:02:35 +02:00
Stéphane Goetz
bed4d204ca Create a "daux" binary
Refactored Daux a bit to allow generating documentation from working directory
2016-07-29 08:02:34 +02:00
onigoetz
029d6cf332 Applied fixes from StyleCI 2016-07-29 08:02:34 +02:00
Stéphane Goetz
4c98140329 Add the ability to do relative links in documentations 2016-07-29 08:02:34 +02:00
Stéphane Goetz
3ae2662662 Remove Bootstrap and simplify styles 2016-07-29 08:02:34 +02:00
Sam Hermans
73f9f30e9f realpath returns the canonicalized absolute pathname 2016-07-28 11:18:24 +03:00
Sam Hermans
e132a102d8 Dont set theme-variant if there is none 2016-07-28 10:59:54 +03:00
Stéphane Goetz
38e939c848 Fix deepclone, generation and file loading bugs 2016-05-01 20:56:23 +02:00
Stéphane Goetz
d25a001325 Fix front matter gathering, was very eager on some cases 2016-04-28 23:33:26 +02:00
Stéphane Goetz
ab490bd156 Fix errors introduced by the guzzle 6 update fixes #362 2016-04-15 10:43:44 +02:00
Stéphane Goetz
9adf934e32 Create latest daux.phar 2016-04-14 21:29:03 +02:00
Stéphane Goetz
a2f5d89201 Merge branch 'master' into development
* master:
  Adjust API to work with Guzzle 6
  Change guzzle version to ~6.0
  Added docs to explain how to use markdown to display images

# Conflicts:
#	composer.lock
2016-04-14 21:28:52 +02:00
Stéphane Goetz
2c3042a2f3 Create latest daux.phar 2016-04-14 12:13:53 +02:00
Stéphane Goetz
76d10a9fe5 Small tweaks 2016-04-14 12:03:46 +02:00
Stéphane Goetz
40a59106fd Add the ability to put an information message at the top of a confluence page 2016-04-14 12:03:25 +02:00
Stéphane Goetz
d3f8d19f88 Finalize table of contents feature, also for confluence upload 2016-04-14 12:02:31 +02:00
Stéphane Goetz
fb7343c109 Merge branch 'development' of https://github.com/justinwalsh/daux.io into development
* 'development' of https://github.com/justinwalsh/daux.io:
  Add Table Of Contents feature
  Compile latest version
  Fix floating value read
  Improve toggle usability
  Generate can fall back to daux.phar, fixes #354
  Add an arrow to open sub-trees, fixes #277
  Updates
  Finalize search feature for merge
  Add `getPureContent` to Page to be able to get content without template
  Update the list of demos
  Fix dynamic website
  First checkin of search for static websites
  Compile latest version
  Add computed raw pages, to create special content at any time
  Small tweaks
2016-04-13 17:48:05 +02:00
Stéphane Goetz
b037a43e2d Add Table Of Contents feature 2016-04-12 08:38:52 +02:00
ayeo
fa38e68045 Adjust API to work with Guzzle 6 2016-04-09 16:42:46 +02:00
Stéphane Goetz
2bd1978f0e Add an arrow to open sub-trees, fixes #277 2016-04-02 13:39:04 +02:00
Stéphane Goetz
d4c78ae3f9 Finalize search feature for merge 2016-03-13 21:51:58 +01:00
Stéphane Goetz
55ef0b982b Add getPureContent to Page to be able to get content without template 2016-03-13 21:51:15 +01:00
djohnanderson
61388e1c51 First checkin of search for static websites 2016-02-15 12:14:48 -08:00
Stéphane Goetz
b1964a7c37 Add computed raw pages, to create special content at any time 2016-01-31 12:00:29 +01:00
Stéphane Goetz
8e065982c5 Small tweaks 2016-01-31 11:59:35 +01:00
Stéphane Goetz
de7b154351 [Confluence] Add options on the update_threshold, and ability to specify a root_id instead of ancestor_id 2016-01-26 12:00:07 +01:00
Stéphane Goetz
2bf64a9f14 Merge pull request #344 from Schiznitz/development
UTF8 Internal link support
2016-01-26 08:07:23 +01:00
Schiznitz
ae9bfe4844 UTF8 Internal link support
example:
[Hello CHS](!Examples/你好世界)
2016-01-26 14:35:29 +08:00
Stéphane Goetz
6f43467348 Avoid multiple uploads of the same file in confluence 2016-01-25 17:49:26 +01:00
Stéphane Goetz
5d6dc9a8b1 Take templates from inside .phar if dir doesn't exist 2016-01-25 16:10:13 +01:00
Stéphane Goetz
12c4a150e0 [Confluence] Delete pages that exist on confluence but not in the documentation 2016-01-25 14:48:37 +01:00
Stéphane Goetz
74b11f6c7b Stop publishing on duplicate page 2016-01-25 14:47:37 +01:00
Stéphane Goetz
ef5dc8ea52 Add missing . on getOrCreate 2016-01-25 14:47:13 +01:00
Stéphane Goetz
6111ca46fa Fix small typo in Server.php fixes #336 2016-01-07 22:20:00 +01:00
Stéphane Goetz
02ede2220e Add missing symfony/polyfill-mbstring to the compiled phar 2016-01-07 22:16:21 +01:00
Stéphane Goetz
0daa6d3148 Update dependencies 2016-01-07 21:31:43 +01:00
Stéphane Goetz
a3ebedb7e3 Add a way to disable the automatic landing page
fixes #338
2016-01-07 21:18:18 +01:00
Stéphane Goetz
93330e86db Add metadata support, fixes #210 2015-11-11 00:09:47 +01:00
Stéphane Goetz
295aee5f77 Create single-page HTML output, prepares the terrain for PDF/ePub output 2015-11-06 22:44:34 +01:00
Stéphane Goetz
18a34beac3 Add previous and next links to the pages, fixes #93 2015-10-28 00:18:29 +01:00
Stéphane Goetz
6e38c56a12 First unit tests & TDD Refactoring 2015-10-28 00:01:41 +01:00
Stéphane Goetz
b7983f101b Fix markup for image from external sources for Confluence 2015-10-27 16:03:58 +01:00
Stéphane Goetz
5ada801e6d Fix method signatures for confluence 2015-10-27 16:03:06 +01:00
Stéphane Goetz
d6e2eb5592 Do not send notification emails ... 2015-10-27 16:02:12 +01:00
Stéphane Goetz
d5af196ee6 Compile latest daux.phar 2015-10-22 19:51:55 +02:00
Stéphane Goetz
9497be3817 Add Markdown tables support 2015-10-21 23:26:42 +02:00
Stéphane Goetz
9c16b666f7 Fix bug on PHP 5.4 and document the minimum version 2015-10-21 21:41:42 +02:00
Stéphane Goetz
d02ac85697 Fix code style 2015-08-16 22:26:00 +02:00
Stéphane Goetz
a7aff213de Disable inherit_index in generated mode 2015-08-16 22:24:49 +02:00
Stéphane Goetz
db520e36e6 Use DirectoryIterator to build the tree 2015-08-16 21:19:55 +02:00
Stéphane Goetz
dc1965a2e7 Improve windows support, fixes #264, #298 and #307 2015-08-15 16:31:36 +02:00
Stéphane Goetz
e343c03d5e Merge all daux themes together and introduce variants 2015-08-09 23:06:50 +02:00
Stéphane Goetz
9dca1e09c0 remove bootstrap-js and require-jquery as theme options 2015-08-09 22:19:06 +02:00
Stéphane Goetz
3db09add7e Fix generation 2015-08-09 22:18:23 +02:00
Stéphane Goetz
cee589fbad Merge branch 'dev_template_refactor' of https://github.com/holodyn/daux.io into holodyn-dev_template_refactor
# By David Hunt
# Via David Hunt
* 'dev_template_refactor' of https://github.com/holodyn/daux.io:
  Updated libs to use /templates and /themes/{theme}/templates Renamed /themes/core to /themes/daux Updated /themes/{theme}/less/theme.less to allow for bootstrap overrides Added /themes/daux/less/theme.less to allow daux to function as theme - used daux-navy colors Moved fonts from themes variants into /themes/daux/fonts
  Refactored /templates and /resources into a single /themes folder.

# Conflicts:
#	libs/Daux.php
2015-08-09 21:29:23 +02:00
David Hunt
f9d87c5c71 Updated libs to use /templates and /themes/{theme}/templates
Renamed /themes/core to /themes/daux
Updated /themes/{theme}/less/theme.less to allow for bootstrap overrides
Added /themes/daux/less/theme.less to allow daux to function as theme - used daux-navy colors
Moved fonts from themes variants into /themes/daux/fonts
2015-08-06 16:47:38 -04:00
Stéphane Goetz
01df221476 Fixed compilation of created pages 2015-08-06 22:05:17 +02:00
Stéphane Goetz
2f5abb8488 Make sure the entries that just have a number work correctly 2015-08-04 22:40:24 +02:00
Stéphane Goetz
b1eaa506b2 Code Style 2015-08-04 22:29:26 +02:00
Stéphane Goetz
27e0e8780c Merge pull request #299 from holodyn/dev_inherit_index
Added inherit_index feature
2015-08-02 14:58:59 +02:00
David Hunt
fca2b4dc6a Refactored /templates and /resources into a single /themes folder. 2015-07-31 11:54:02 -04:00
Stéphane Goetz
d2b45a845f Pass the original node on generation 2015-07-31 12:53:22 +02:00
David Hunt
551e03dc93 Merge remote branch 'upstream/development' into development 2015-07-30 17:44:11 -04:00
Stéphane Goetz
d5458c5a0f Fix template finding 2015-07-30 15:41:38 +02:00
Stéphane Goetz
651f860222 Improve the builder to support file extension, for contentTypes 2015-07-29 22:39:19 +02:00
Stéphane Goetz
489fc6a2d4 LiveGenerator interface should extend Generator 2015-07-29 22:31:59 +02:00
Stéphane Goetz
e543a107b1 Extract ContentType from format 2015-07-29 22:31:41 +02:00
Stéphane Goetz
386f323dd0 Hide directories that have no content 2015-07-29 08:30:41 +02:00
Stéphane Goetz
114a0f29b7 Be able to set the source directory on command line 2015-07-28 17:26:35 +02:00
Stéphane Goetz
b5ce4f1d79 Added a content type system to be able to extend the conversion mechanism 2015-07-28 17:25:03 +02:00
David Hunt
1e1f261ea9 Patch duplicate call to seekFirstPage during recursive search. 2015-07-27 18:42:33 -04:00
Stéphane Goetz
72ebc50e6c Reorganise console classes 2015-07-23 17:44:24 +02:00
Stéphane Goetz
4fec115627 Bugfix in confluence upload. The bug in image reuploads is fixed in confluence 5.8 2015-07-23 17:43:22 +02:00
David Hunt
7a01df7ea9 Added the inherit_index feature for routing requests to directories without a valid index defined. 2015-07-21 14:34:21 -04:00
Stéphane Goetz
12739c2044 Small fixes in url generations 2015-07-21 09:51:55 +02:00
Stéphane Goetz
061ea5ea55 Code Style and refactorings 2015-07-20 20:51:49 +02:00
Stéphane Goetz
f903b0060c Fix index pages detection in live mode 2015-07-20 20:51:48 +02:00
Stéphane Goetz
d921c412b5 Add format and processor as configuration options for live mode 2015-07-20 20:51:48 +02:00
Stéphane Goetz
c00dfac001 Change configuration format 2015-07-20 20:51:48 +02:00
Stéphane Goetz
f757e88040 Fixed base url problems in live mode 2015-07-20 20:51:48 +02:00
Stéphane Goetz
1f167db1f6 Fixed error page 2015-07-20 20:51:48 +02:00
Stéphane Goetz
932fab5a84 Transform the server to be able to use the Generator 2015-07-20 20:51:48 +02:00
Stéphane Goetz
d531de86cf Cleaned getFirstPage a bit 2015-07-20 20:51:48 +02:00
Stéphane Goetz
87fbb6f15d Initialize the markdown parser only once. 2015-07-20 20:51:48 +02:00
Stéphane Goetz
e3a3438ccd Improve processors
Now you can add generators and extend the markdown parser
2015-07-20 20:51:48 +02:00
Stéphane Goetz
bb3a3408fd Bugfix in the path rebase from the HTML Generator 2015-07-20 20:51:42 +02:00
Stéphane Goetz
e70461b641 Fix and simplify homepage detection in HTML generator 2015-07-20 20:51:41 +02:00
Stéphane Goetz
a13469047a Move getIndexPage and getFirstPage to Directory 2015-07-20 20:51:41 +02:00
Stéphane Goetz
e87c86d9aa Added documentation 2015-07-20 20:51:41 +02:00
Stéphane Goetz
7dc7c045d4 Bugfixes 2015-07-20 20:51:32 +02:00
Stéphane Goetz
aa5602a0fb Refactor the tree system
Each element of the tree now only has one parent, not a parent array.

- Creating an elements doesn't necessarily rely on an existing file
- Moving elements unregisters elements from the previous parent
- Moved some helpers to the builder instead of Entry
2015-07-20 20:51:32 +02:00
Stéphane Goetz
3235c49acd Refactor to not use ->value in the tree 2015-07-20 20:51:32 +02:00
Stéphane Goetz
9cdc9815ea Add a few checks 2015-07-20 20:51:32 +02:00
Stéphane Goetz
71d1041cb8 Refactor getFirstPage 2015-07-20 20:51:32 +02:00
Stéphane Goetz
ce109d0429 Cosmetic changes 2015-07-20 20:51:32 +02:00
Stéphane Goetz
a35af5fd19 Remove the file editor 2015-07-20 20:51:32 +02:00
Stéphane Goetz
4f8d817365 Code Style and documentation 2015-07-20 20:51:13 +02:00
Stéphane Goetz
e7afd9aa28 Add a more advanced processor system 2015-07-20 20:51:12 +02:00
Stéphane Goetz
8dd3c1d6f8 Add missing helpers 2015-07-20 20:51:12 +02:00
Stéphane Goetz
a5afc23cda Bugfix on confluence API 2015-07-20 20:51:12 +02:00
Stéphane Goetz
f64758aeec Improve Tree API 2015-07-20 20:51:12 +02:00
Stéphane Goetz
a044b4b0ca Improve tree api 2015-07-20 20:51:12 +02:00
Stéphane Goetz
290f52d181 Finish the processor system 2015-07-20 20:51:12 +02:00
Stéphane Goetz
1f4f18dccf Bugfixes in confluence 2015-07-20 20:50:49 +02:00
Stéphane Goetz
4f33394c77 Compile archive to phar 2015-07-20 20:50:49 +02:00
Stéphane Goetz
cd65072a20 Use symfony console, nicer output 2015-07-20 20:50:42 +02:00
Stéphane Goetz
e3c9ce98b8 Use the right entry page 2015-07-20 20:49:19 +02:00
Stéphane Goetz
b5dd82fe2a Added debug to confluence publishing 2015-07-20 20:49:19 +02:00
Stéphane Goetz
5791fccea8 Added internal documentation links 2015-07-20 20:49:19 +02:00
Stéphane Goetz
60b50919b4 Remove "default.json" concentrate all configurations in "global.json"
Set configurations in an Object instead of an array
2015-07-20 20:49:19 +02:00
Stéphane Goetz
100568bfbb Preload more data in getList 2015-07-20 20:49:19 +02:00
Stéphane Goetz
8901634790 Fix bugs and optimized upload time 2015-07-20 20:49:19 +02:00
Stéphane Goetz
63d6b17ec4 Bugfixes related to themes and Commonmark migration 2015-07-20 20:49:19 +02:00
Stéphane Goetz
1fe3e62df3 Improve confluence export
Migrate from Parsedown to Commonmark
2015-07-20 20:49:19 +02:00