Dawa Ometto
dfb4281a14
Add MediaWiki language def ( #1382 )
2019-05-16 21:03:07 +02:00
Dawa Ometto
7881237de2
Improve RTL support. Resolves #1314 ( #1350 )
...
* Improve RTL support with updated ACE 1.4.4
* Implement direction switch button
* RTL support on rendered pages
* Fix ace editor modes
* Fix language definitions
2019-05-16 20:38:33 +02:00
Yang Zhang
c0e6de899b
Upgrade to mathjax-2.7.5 and use original mathjax config (fix comments in #1218 )
2019-05-12 14:30:45 +08:00
Yang Zhang
c103f3ebdc
Fix mathjax loading and remove unused config
2019-05-11 09:04:14 +08:00
Yang Zhang
7cabd684a9
Bundle a slim mathjax (4.5MB uncompressed, 1.5MB compressed)
2019-05-11 09:04:14 +08:00
Dawa Ometto
b40a344c49
Remove page file dir from frontend. Resolves #1052 #1241 ( #1369 )
...
* Remove all references to page_file_dir. Use new method signature for Wiki#page. Refactor helpers.
* Use write_file for uploads
* Refactor /pages route
2019-05-04 01:19:59 +02:00
hirocaster
97857d0e3f
Fix h1-title at org-mode
2019-03-20 22:09:07 +09:00
Bart Kamphorst
94fe2f59d3
Implements a breadcrumb for normal wiki pages. Resolves #629 .
2019-01-03 09:45:08 +01:00
Bart Kamphorst
fb5c65827d
Move page title (h1) down. Move Home button to upper left corner on all views.
2018-12-30 19:09:52 +01:00
Dawa Ometto
bb79cf5ce6
Merge branch 'repotag-use_path_helpers' into 5.x
2018-12-28 23:42:21 +01:00
Dawa Ometto
f72e8610da
Merge branch 'use_path_helpers' of https://github.com/repotag/gollum into repotag-use_path_helpers
2018-12-28 23:41:56 +01:00
Dawa Ometto
b76a250596
Use AJAX button click for cmd-s hotkey. Fixes 1356 ( #1361 )
2018-12-28 23:40:32 +01:00
Dawa Ometto
2aea55a92c
[WIP] Improve editor buttons: insert markup at the correct position. Resolves #504 ( #1348 )
...
* Improve editor buttons: insert markup at the correct position
* Center cursor after replacing text.
* Reimplement keyboard shortcuts for ace.
* Add break_line and whole_line to all language definitions
* Implement a better unordered list function.
2018-12-28 23:23:06 +01:00
Bart Kamphorst
e966de6922
Added tests for mathjax.config.js permissions. Fixed typo in permission regex.
2018-12-28 22:57:13 +01:00
Bart Kamphorst
006dd36078
Make mathjax.config.js the standard filename. Fixes #1340 .
2018-12-28 22:07:07 +01:00
Bart Kamphorst
58225c7c20
Add basic rest language definition. Fixes #1092 .
2018-12-28 21:33:17 +01:00
Dawa Ometto
04501c205a
Introduce JS variant of path helpers
2018-12-10 19:54:21 +01:00
Dawa Ometto
253ba89f90
Use relative asset urls in scss so base path will work
2018-12-10 19:53:40 +01:00
Dawa Ometto
7f598cb49e
Fix e shortcut with baseurl
2018-12-10 19:52:52 +01:00
Dawa Ometto
d3402dded2
Fix delete button in pages view with basepath
2018-12-10 19:52:23 +01:00
Dawa Ometto
f222efd281
Remove unnecessary uglifier requirement
2018-12-10 19:51:06 +01:00
Bart Kamphorst
ddfaf8c091
Simpler solution for normalization of uploaded files.
2018-11-29 09:25:19 +01:00
Bart Kamphorst
ca9702088f
Do not attempt to normalize images or binary files.
2018-11-27 12:20:56 +01:00
Bart Kamphorst
413e962871
Update MathJax CDN. Related to PR #1267 .
...
Co-authored-by: dplanella <dplanella@gitlab.com >
2018-11-23 14:29:21 +01:00
Bart Kamphorst
848cef26ee
Fix wrapping issue for inline code blocks. Fixes #1033 .
2018-11-23 13:49:51 +01:00
Bart Kamphorst
f4838d12c6
Return the page's most recent version instead of random string.
2018-11-20 15:04:32 +01:00
Bart Kamphorst
efd1d3992d
Use page.sha instead of a content-based hash for collision detection.
2018-11-19 12:58:30 +01:00
Bart Kamphorst
d4a9da0db5
Implement infrastructure for detecting and handling of simultaneous edits.
2018-11-16 14:24:21 +01:00
Bart Kamphorst
5de2442540
Merge branch '5.x' into critic_markup_styling
2018-11-12 16:39:45 +01:00
Bart Kamphorst
b5c4fdcc83
Merge pull request #1344 from gollum/ajax_file_upload
...
Improvements and fixes for file uploading. Prepares for handling of duplicate error.
2018-11-12 16:32:05 +01:00
Bart Kamphorst
b50872497e
Loosen route replacement regex to allow for dashes in routes.
2018-11-12 11:57:28 +01:00
Bart Kamphorst
6d0b42b18f
Fix superfluous code in edit.rb. Add more descriptive help sentence for CriticMarkup.
2018-11-11 15:35:51 +01:00
Dawa Ometto
3c4c2a072c
Update app.rb ( #1346 )
2018-11-10 17:47:02 +01:00
Bart Kamphorst
769f8ec8d6
Implements frontend support for CriticMarkup. Related to #1016 .
2018-11-08 16:11:38 +01:00
Bart Kamphorst
64c4ee9c05
Improve upload handling (server-side and UI).
2018-11-07 11:06:25 +01:00
Bart Kamphorst
6857995442
Only use ajax for file upload. Prepare for handling of duplicate error.
2018-11-02 14:38:12 +01:00
Yang Zhang
daef5fe9d2
Show spinning when uploading
2018-10-29 22:03:40 +08:00
Yang Zhang
b8629729b9
Fix absense of visual feedback when uploading with drag-and-drop
2018-10-28 19:24:22 +08:00
Dawa Ometto
4e2b1442bd
Fixup: typo and correct asset path
2018-10-20 00:47:35 +02:00
Dawa Ometto
d2ea03fbb9
Use path helpers consistently
2018-10-20 00:28:25 +02:00
Bart Kamphorst
19751ec37f
Use snake_case uniformly for all routes.
2018-10-19 21:54:14 +02:00
Bart Kamphorst
814caff755
Merge pull request #1336 from gollum/unify_deletion_routes
...
Unify deletion routes. Implement ajax deletion for /pages. Closes #1332 .
2018-10-19 21:41:33 +02:00
Bart Kamphorst
8d611ea25a
Add explanatory notes to deletion logics.
2018-10-19 21:32:22 +02:00
Bart Kamphorst
1a8b6d6823
Implement AJAX deletion in /pages in order to remove redirect in /delete route.
2018-10-19 21:04:31 +02:00
Dawa Ometto
78289a53bb
Implement header counting using YAML frontmatter. Resolves #908 ( #1330 )
2018-10-19 16:09:23 +02:00
Bart Kamphorst
825f43c429
Remove debug statements.
2018-10-17 22:24:05 +02:00
Bart Kamphorst
454b5e94dc
Unify deletion routes. Closes #1332 .
2018-10-17 22:18:23 +02:00
Lucas Bearden
7ddbab76c1
updated print.scss to remove footer when printing
2018-10-17 12:50:07 -04:00
Bart Kamphorst
6475394133
Use new view helper method in /pages. Add /deleteFile route to helpers. Fix bug in breadcrumb of /Home.
2018-10-17 14:47:35 +02:00
Dawa Ometto
197a2bd57b
Namespace ( #1328 )
...
* CSS to SCSS
* Use sprockets
* Use Sprockets helpers
* Fix gollum.editor.js error when changing language
* Add keybinding files required by ace and some ace ext files that are required or might be useful.
* Move app paths to /gollum namespace, add route helpers for view templates
* Use path helper for links in page view
* Use path helper methods in javascript assets
* Refactored sprockets helpers for mustache
* Remove debugging
2018-10-14 15:46:10 +02:00