fablab-luenen / dokuwiki-krypton

Nice (simple, modern, polished) DokuWiki theme.
https://wiki.fablab-luenen.de/
Other
8 stars 2 forks source link

Smooth edit/Super fast page loading #25

Closed solarkraft closed 3 years ago

solarkraft commented 3 years ago

Integrates swup to load pages on the client side. Gets rid of the flashing on page loads (including the fairly heavy one on opening the editor), dramatically speeds up page loads and in the future even allows transition animations.

Before:

https://user-images.githubusercontent.com/1337470/133324468-7ede6942-4c27-4a1a-8731-cc9d4c07ac74.mov

After:

https://user-images.githubusercontent.com/1337470/133324544-058608d8-48be-43e2-82bf-57824f46cccc.mov

solarkraft commented 3 years ago

This breaks editing pages through a link in the sidebar. Disabling swup on that link would re-enable flashing. Well crap!

But - since that link is about to be removed anyway: Ignore this? Are there any other issues that are going to be caused by side-content not being directly aware of the current page? My preliminary guess is no.

solarkraft commented 3 years ago

The option of the full text search is not visible or accessible currently. Maybe there should be an extra option, something like “advanced search”. Probably above the new page button.

solarkraft commented 3 years ago

I did this to avoid having to deal with localization, but I have to anyway and may be able to re-use an existing string - the option to create a page should probably have a “create this page” text.