Commit graph

1683 commits

Author SHA1 Message Date
Philip Daniels 045e9def21 globset can be a dev-dependency in 'content' 2018-02-25 21:00:47 +00:00
Vincent Prouillet 5c56278be1 Let people edit their index.md
Closes #241
2018-02-25 19:29:48 +01:00
Philip Daniels 3e1221064b Filter ignored content in page.rs.
* Add ignored_content to the Config structure.
* Use the GlobSet crate to parse the glob patterns into a matcher, which
  is created once at program initialization. If there are no patterns in
  ignored_content, an empty globber is created, which excludes no files.
  This is consistent with the existing behaviour of Gutenberg, before
  this feature was added.
* Bail if there are any errors in the glob patterns.
* Add a call to the globber in page.rs to actually do the filtering.
* Update documentation.

A note on the Config structure
------------------------------
* I had to remove the PartialEq derive from the Config structure as it
  does not work for the GlobSet type. No harm is done, Config does not
  need to be PartialEq anyway, since there is no need to sort Configs.
* The implementation follows the pattern of the existing config settings
  in that it uses an Option<...>. This would appear unnecessary, in that
  an empty vec could be used as the default, but it appears to be needed
  by the TOML parsing. A better approach would be to use a separate
  SerializableConfig and map to/from a Config struct. This would also
  allow the elimination of most, if not all, of the other Options in
  the Config structure, but that ought to be another PR.
2018-02-25 15:15:51 +00:00
Vincent Prouillet 972687fd76 Add back mistakenly deleted test file 2018-02-23 18:07:15 +01:00
Vincent Prouillet 9e5c34df66 WIP theme site 2018-02-23 18:05:46 +01:00
Vincent Prouillet 3a00f0bcec Move examples to other readme
Closes #214
2018-02-22 19:04:09 +01:00
Vincent Prouillet b966a52dd1 Add credits to deploy github page 2018-02-22 19:03:00 +01:00
Vincent Prouillet ec35d72b6f Add some deployment docs 2018-02-22 19:03:00 +01:00
Vincent Prouillet fa8a2bfb2a Try to update netlify.toml 2018-02-22 19:03:00 +01:00
Vincent Prouillet 10818cd0de Stop trying to load every file as markdown on serve
Closes #235
2018-02-22 16:49:37 +01:00
Vincent Prouillet 24fad7a5e8
Merge pull request #234 from reillysiemens/who-using-it
Add tuckersiemens.com to example sites
2018-02-20 09:52:25 +01:00
Reilly Tucker Siemens 6273975a72
Add tuckersiemens.com to example sites 2018-02-20 00:14:44 -08:00
Vincent Prouillet d9af6fe18f Update syntaxes 2018-02-15 10:44:37 +01:00
Vincent Prouillet 45fc1ee761 Release 0.3.1 2018-02-15 10:41:49 +01:00
Vincent Prouillet f179d183ef Update completions 2018-02-02 17:37:30 +01:00
Vincent Prouillet f7cacba3f0 Update deps and changelog 2018-02-02 17:35:03 +01:00
Vincent Prouillet 54841b19bb
Merge pull request #220 from Keats/markdown-inline
Markdown inline
2018-02-02 17:29:16 +01:00
Andrew Zah f5ced05926 Separate interface and base url for gutenberg serve (#223)
Separate interface and base_url for serve

You can now have a different base_url and listening interface.
The `gutenberg serve` cmd now accepts `-u`/`--base-url`, but it defaults to `127.0.0.1`.
2018-02-02 17:18:07 +01:00
Vincent Prouillet 4d8647279c Update some deps 2018-02-01 09:24:00 +01:00
Vincent Prouillet 094dfb4f2f
Merge pull request #222 from Keats/rebuild-tests
Move test_site and turn rebuild.rs into a component
2018-01-29 21:31:20 +01:00
Vincent Prouillet 4362efc789 Elm-syntax submodule moved 2018-01-29 19:10:18 +01:00
Vincent Prouillet 04263766b8 Update syntaxes 2018-01-29 19:00:05 +01:00
Vincent Prouillet 16f658c70c Move test_site and turn rebuild.rs into a component 2018-01-29 18:40:12 +01:00
Vincent Prouillet 29ce510aa3 Add inline option of markdown filter
Fix #197
2018-01-26 16:22:38 +01:00
Vincent Prouillet 49793314a0 Update benchmarks 2018-01-26 16:07:44 +01:00
Vincent Prouillet 7316b98c9b Start changelog for next version 2018-01-25 19:12:17 +01:00
Vincent Prouillet ec79c8ee0e Update Tera to fix regression 2018-01-25 19:11:35 +01:00
Vincent Prouillet a898a0004c
It's 2018 now, 2018! 2018-01-25 15:15:59 +01:00
Vincent Prouillet c165c17c2f
Merge pull request #175 from Keats/next
Next version
2018-01-25 14:33:53 +01:00
Vincent Prouillet 7b26418260 Try to remove sudo: required in travis 2018-01-25 12:44:41 +01:00
Vincent Prouillet fea728d413 Update cargo metadata 2018-01-25 12:18:21 +01:00
Vincent Prouillet b73ff48482 Fix not compiling on nightly
Fix #215
2018-01-24 13:21:48 +01:00
Vincent Prouillet 60c2fa08d0
Merge pull request #217 from svenstaro/patch-1
Proper Arch Linux spelling
2018-01-23 14:57:11 +01:00
Sven-Hendrik Haase 462365642d
Proper Arch Linux spelling
It's either Arch Linux or archlinux but never Archlinux or ArchLinux.
2018-01-23 12:48:18 +01:00
Vincent Prouillet 4e7538c821 Update some syntaxes + test on rust 1.23 2018-01-22 21:20:55 +01:00
Vincent Prouillet a44dd5f49a serve cleans after itself now
Closes #199
2018-01-22 18:11:28 +01:00
Vincent Prouillet 11bfd7b2be Tera 0.11 has been released 2018-01-22 15:10:03 +01:00
Vincent Prouillet 8c7e3d7358 Remove stray println 2018-01-22 13:54:10 +01:00
Vincent Prouillet f37992e03a Do not unwrap on serve 2018-01-22 13:46:36 +01:00
Vincent Prouillet f3b1553a26 Update docs about trans 2018-01-16 13:57:31 +01:00
Vincent Prouillet b06f012be4 Fix tests wrt language_code 2018-01-16 13:49:49 +01:00
Vincent Prouillet 7a2c26a71f
Merge pull request #132 from batisteo/i18n
i18n basic configuration and trans Tera tag
2018-01-16 13:42:32 +01:00
Vincent Prouillet 038fc31233
Merge pull request #212 from verpeteren/spam-materialize-theme
added reference to materialize theme and 'who is using'
2018-01-16 13:40:30 +01:00
Vincent Prouillet 5965620df0 USe date range for license 2018-01-16 13:39:56 +01:00
Vincent Prouillet d550d87c70
Merge pull request #211 from coliff/patch-1
Update LICENSE
2018-01-16 13:39:01 +01:00
Peter Reijnders ec9375422d added reference to materialize theme and 'who is using' 2018-01-15 17:59:17 +01:00
Baptiste Darthenay 046de8c998 Config with i18n 2018-01-15 17:54:06 +01:00
Christian Oliff 312b73204d
Update LICENSE 2018-01-15 19:46:00 +09:00
Vincent Prouillet ade179ec15 Mention lack of quotes for dates in docs 2018-01-14 18:08:04 +01:00
Vincent Prouillet 1d1ff74d88 Use TOML dates in front-matter rather than strings
Closes #210
2018-01-14 18:04:01 +01:00