HELL YES! Render errors are so much better than CORS errors!

Now to get misskey support working for realsies
Okay, so for now at least I'm not going to do misskey custom emoji. It looks a fair bit harder than the mastodon equivalent, and I want to get a prototype done now
This looks like shit, but it is progress!
Look at this garbage
And with that, sphinx-fediverse 0.5.2 is released with initial support for running on Misskey/*key instances.

Known bugs:
- Misskey instances cannot yet load custom emoji or media attachments
- CSS for Shibuya theme on Chrome seems to have some minor problems, specifically with the hover effect

Breaking changes:
- the comment directive is now
fedi-comments rather than mastodon-comments
- some config values have had their name changed
- you are now required to specify what flavor of fediverse instance you're hosting on

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey
And now sphinx-fediverse 0.5.3 is released. The big thing here is I've separated the rendering logic from comment parsing, so it's easier to support both flavors. Rendering is still pretty janky, but it's a good start towards the final setup.

Next on the list:
- *key media attachments
- better rendering code

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey
sphinx-fediverse 0.6.0 is now released. Since the previous version...

New features:
- (Standard) Markdown rendering for Misskey instances (more MFM support to come later)
- Support (in parser only) for emoji-based reactions
- Support (in parser only) for sensitive images among non-sensitive images
- Dump the post-to-page mapping to _static/ for ease of debug
- Support for reply handling on Misskey instances

Bug fixes:
- Icons previously wouldn't show for posts outside the root directory
- A typo led to a duplicate icon
- Shibuya dark now produces legible icons (and this should be portable to other themes)
- the hover effect no longer renders text unreadable on Shibuya dark (again, should be portable)

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
Which of these issues should I tackle next? I leaning towards render support for emoji reactions (but not custom ones, because I still need to figure that out for Misskey)

https://github.com/LivInTheLookingGlass/sphinx-fediverse/issues/

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
Issues Β· LivInTheLookingGlass/sphinx-fediverse

Enable comments for your sphinx page, conveniently hosted on Mastodon or Misskey - Issues Β· LivInTheLookingGlass/sphinx-fediverse

GitHub
sphinx-fediverse 0.7.0 is now released. Since the previous version...

New features:
- Improved rendering security! It no longer relies on a massive HTML template. Still some progress to make
- Support for unicode emoji reactions on Misskey instances
- If a comment is too wide for the page, it will now split the username, so:
@[email protected] will become @LivInTheLookingGlass\[email protected]
- Increased use of the comment parser to avoid ambiguities
- Comment posts will now include the title of the article and, if on Misskey, put the link on that text
- Misskey now supports the following parts of MFM:
- anything in standard Markdown
- mentions
- hashtags
-
<small>
-
<center>
-
<i>
-
<plain>

Bug fixes:
- Bumped the version of an insecure dependency

Extra shout-out to the people who "bullied" me into fixing the render code. It's not perfect, but it's a lot better now. Figuring out a better way to

1. sanitize MFM input
2. adapt
replaceEmoji() to work with DOM elements
3. get custom emoji working for Misskey instances

are probably the last real blockers before a 1.0 release. There's a few more Misskey-related things that would be nice, but it's mostly about increasing parity at that point

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
sphinx-fediverse 0.8.0 is now released. Since the previous version...

New features:
- Support for custom emoji in non-reaction content on Misskey
- Support for individual media to be marked as sensitive (mostly in Misskey)
- Support for account-wide content warnings in Misskey
- Comment parsing now done with async methods

Bug fixes:
- Corrected a typo in article reaction rendering
- More CSS changes related to word wrap
- Fixed a bug in
replaceEmoji() that caused only the first paragraph of posts to be rendered

Likely next steps:
- Custom emoji in reactions
- Find a better way to sanitize Misskey posts
- Verify that Mastodon actually returns sanitized HTML (and remove the worst parts if not)
- Adapt
replaceEmoji() to directly produce DOM elements instead of relying on the parser

Special thanks to
@hazelnoot for pushing me to rewrite the render code

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
sphinx-fediverse 0.9.0 is now released. This is likely the last beta release. Since the previous version...

New features:
- Per-directive overrides of global options
- Automatic linting of CSS
- Ability to use multiple fedi instances/flavors in one project
- Significantly increase support for Misskey Flavored Markdown (blur, flip, scale, bg/fg color, ruby text, font, border)
- Significantly more tests (overall code coverage ~70%)

Bug fixes:
- Fix some MFM rendering errors
- Fix Misskey not reporting global boosts correctly

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
Good news! sphinx-fediverse is now out of beta and has a stable release! It'a ready to go for enabling comments sections in your Sphinx-generated web pages

#Python #SphinxDoc #FOSS #FLOSS #OSS #FediBridge #Mastodon #Misskey #Sharkey #Fediverse #Fedi
@LivInTheLookingGlass how did you format the text like this? Did Mastodon add markdown while I wasn't paying attention? Thanks
@andreagrandi Plenty of fedi flavors support it. Not sure that your instance specifically does, but mine definitely supports it, and some other fun things
@LivInTheLookingGlass well, let's test `this` πŸ˜…
@LivInTheLookingGlass spoiler: no, it seems it doesn't
@andreagrandi Amusingly, it shows up formatted for me

@LivInTheLookingGlass A code snippet with black background, and light yellow highlights, showing the function RenderComment. Inside the function, there are variables such as "user", "domain", "handle", "commentUrl", and "userUrl". There are also conditional statements checking for "fediflavor" and "comment.sensitive". HTML tags like "div", "img", "a", "span", and "details" are being used to construct a string. The code also includes lines that parse a string with emojis and create a document fragment. Finally, the function returns the fragment.

Provided by @altbot, generated using Gemini

@LivInTheLookingGlass I tried and gave up on making a Fedi app and I feel this so much. Misskey emoji make brain hurt