Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 03 00:13

    sbrl on master

    page-list: add filter GET param… Bump version to v0.24-beta2; up… (compare)

  • Aug 03 00:07

    sbrl on master

    parser-parsedown: coment debug … (compare)

  • Jul 20 21:17
    dependabot[bot] labeled #231
  • Jul 20 21:17
    dependabot[bot] opened #231
  • Jul 20 21:17

    dependabot[bot] on npm_and_yarn

    build(deps): bump terser from 5… (compare)

  • Jul 05 00:41

    sbrl on v0.24-beta1

    (compare)

  • Jul 05 00:18

    sbrl on master

    package.json: bump version (compare)

  • Jul 05 00:13

    sbrl on master

    Update dependencies Bump versions (compare)

  • Jul 04 22:55

    sbrl on master

    Update changelog (compare)

  • Jun 30 00:43

    sbrl on master

    Bugfix action-raw: add missing … (compare)

  • Jun 30 00:42

    sbrl on master

    bugfix: fix reference to tags i… (compare)

  • Jun 30 00:40

    sbrl on master

    action-raw: updaate rest api do… (compare)

  • Jun 28 23:06

    sbrl on master

    Add x-tags to raw action (compare)

  • May 26 02:00

    sbrl on master

    Update changelog (compare)

  • May 26 01:49

    sbrl on master

    page-edit: add missing refresh … (compare)

  • May 26 00:12

    sbrl on master

    page-edit: fix user page permis… (compare)

  • May 25 22:51

    sbrl on master

    Return a 409 Conflict instead o… Merge branch 'master' of github… (compare)

  • May 18 14:36

    sbrl on master

    Remove debug logging (compare)

  • May 01 01:31

    sbrl on master

    docs: tweak language about pepp… (compare)

  • Apr 24 13:38

    sbrl on master

    Make PeppermintParsedown::extra… Merge branch 'master' of github… (compare)

The Doctor
@virtadpt
That's really cool!
Starbeamrainbowlabs
@sbrl
Thanks!
I use the start-server & stop-server for development
With a 5M word wiki comprised of pages converted from wikipedia
The Doctor
@virtadpt
Wow. XML dump converted to Markdown, or pumped into the API?
The Doctor
@virtadpt
Sort of a random question... How difficult would it be to add something like vim.js to Pepperminty Wiki as a page editor?
The Doctor
@virtadpt
Also, is there a way to remove the comments box without leaving a huge blank space at the bottom of every page (including the page editor)?
Starbeamrainbowlabs
@sbrl

XML dump → markdown - I've blogged about how I did it if you're interested

Also, is there a way to remove the comments box

The recommended way of doing that at the moment is to build a copy of Pepperminty Wiki without the feature-comments module
(doing so from the latest master will still include absolute redirect support)
I can certainly add a setting to toggle the comments on and off though.

Sort of a random question... How difficult would it be to add something like vim.js to Pepperminty Wiki as a page editor?

Very interesting question. I've been thinking about a page editor improvement for a while now actually
Do you mean this? It seems pretty blurry to me for some reason, but it looks otherwise ok.
Adding a custom page editor requires a few considerations:

  • So long as the final page content that is to be saved is in the relevant <textarea> when you hit the save button, it shouldn't matter what editor you use
  • Depending on the page editor you use, you'll need to inject some CSS (probably with page_renderer::add_header_html($html)) to hide said <textarea />
  • The feature should be in a new module with a descriptive name.
  • It's preferred to include any required resources at build time, as currently Pepperminty Wiki doesn't require an internet connection to setup. This is handled by the extra data system. When writing a new module, you can define 1 or more files to download or copy to include in the final output build. This is done by zipping up the files at build time, and appending it after a __halt_compiler() call - which is then later unzipped at runtime. The limitation here is that it doesn't handle large numbers of files very well, so vim.js would have to be a single file that can be downloaded from somewhere.
  • Specifying the exact commit when downloading is also preferred, as it can avoid breakage when dependencies update
  • If this is to be added to Pepperminty Wiki properly, then a new setting (disabled by default) should be added for the functionality
(sorry for the wall of text @virtadpt :P)
The Doctor
@virtadpt
I'm very interested - I'm always interested in possible migration strategies. :)
I thought that's what it might be (shower thinking)...
That's not a problem. If you push absolute redirect support into main/, I can do a rebuild without that module and copy up to my host after work today.
Yes - vim.js is exactly what I mean (though the demo is in dark mode and not real people mode :) ). I was thinking last night, as I copy-and-pasted stuff into my wiki that having vim tools would make reformatting some of the text way easier (like turning lists into Markdown lists).
The Doctor
@virtadpt
No worries about the wall of text, I still read longform. :)
Hmmm... maybe a third-party plugin so folks don't run into this by accident?
The Doctor
@virtadpt
Oh, is there a known issue with the bottom of a page (when it's edited) being a gigantic blank space?
The Doctor
@virtadpt
It's below the "credits" footer part.
Starbeamrainbowlabs
@sbrl

Sure! Here's a link to the blog post: https://starbeamrainbowlabs.com/blog/article.php?article=posts/375-next-gen-search-2-test-data.html

Ah, I see!

Yeah, I want to overhaul the module system at some point to do something similar to the theme gallery but with modules, to allow you to install / remove them at runtime instead of build time.

Absolute redirect support is already in the latest master of the git repository if you'd like to build a custom copy :D

I've also added a new comment_hide_all setting in the latest master you might want to set to true if you want to disable the commenting system (reload the page to get the setting to be inserted into peppermint.json). I can provide a build if you like, but it sounds like you might be confident enough to build it yourself :-)

Oh my! I thought I'd thought fixed that one. Evidently I forgot to check the other themes lol (I see you're using the blue theme in the earlier screenshot).

The Doctor
@virtadpt
Thanks!
Custom builds are how I was using Pepperminty, so I'll have Windbringer update and push tonight after work.
Yeah. The purple theme is easier for me to see, plus the tags don't have \A prepended to them on every page.
I have questions about the Blue theme, too...
Did they get rid of image attachments in Gitter?
Must have.
Starbeamrainbowlabs
@sbrl
\A prepended? sounds like a bug to me (screenshot?)
Hrm, it worked for me the other day. Try dragging & dropping the image onto the gitter window?
The Doctor
@virtadpt
Trying it again. I'm on my work machine so I'm less familiar with it.
Starbeamrainbowlabs
@sbrl
  • The purple theme is the default theme, and the one I use (it also has prefers-colour-scheme support
  • The blue theme was contributed by someone
  • The photo theme is another I built recently
The Doctor
@virtadpt
Screen Shot 2020-07-08 at 13.45.09.png
There we go.
Aye...
I'll figure out who worked on the Blue theme and ping them about it later.
Starbeamrainbowlabs
@sbrl
Oh my! That's strange. I think that's a browser problem - that character should be invisible (I use Firefox). I'll push a fix for that.
The Doctor
@virtadpt
It shows up on both Firefox and Chrome.
I thought it might be a Firefox thing earlier today, so I tried it on my work laptop. Same thing.
Doesn't happen with the Blue theme, though, so I think it might be a theme bug and not an engine bug.
Starbeamrainbowlabs
@sbrl
That's especially weird, because the code is practically identical for both themes there......
Anyway, I've pushed a fix to master for it
The Doctor
@virtadpt
Okay, I'll check it out tonight. If it's still there I'll chalk it up to a browser bug.
Starbeamrainbowlabs
@sbrl
Cool, ok
image.png
Here's what I see
this is post-fix, but there's no difference on my end
(also, the purple theme supports prefers-color-scheme, so for me it looks dark :D)
The Doctor
@virtadpt
Hrmm.... strange!
Okay, just did a pull, a clean, and a build. I'm getting a bunch of "PHP Warning: mkdir() No such file or directory in /home/drhwo/Pepperminty-Wiki/build.php on line 40"
It did build, though.
Starbeamrainbowlabs
@sbrl
Oh, nasty!
Thankfully that's a simply fix
fixed it
A git pull should fix that issue
You'll want to rebuild, because that issue may possibly have caused a problem in the extra data packing system
The Doctor
@virtadpt
Pulled. Working out how to list the modules to compile in or not at build-time now.
nm. Found it.
The Doctor
@virtadpt
Hmmm... "Error: page-view requires page-credits as a dependency, but it couldn't be found in the module index. This looks like a bug."
I disabled page-credits specifically.
Maybe un-hard-coding that dependency is a good idea?