Do you have suggestions for compatibility with other code platforms? #1069
Unanswered
schulle4u
asked this question in
Ask a question
Replies: 1 comment 4 replies
-
|
Here's what I found out. On Codeberg the link normalisation works differently depending on your current location. Relative links work fine on a subpage, but they don't work on the repository start page. Relative links can be improved with a prefix like Since we use absolute URLs in download links, perhaps use them in language links too? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since we are living in uncertain times (also from a technological point of view), it seems wise not to entrust your code to a single platform. Therefore I have been trying to find out how to upload and maintain a repository on multiple platforms simultaneously. I was only interested in the Yellow-specific documentation adjustments to the repositories. Information on mirroring GitHub repositories in general is well documented.
In principle, offering an extension on multiple code hosting platforms is not a problem. However, the installation settings in the extension.ini file only allow one download and documentation URL, so a choice of platform as the main distribution site is required before publishing. Only the relative paths currently used in the documentation for screenshots and language switching make things a little tricky.
and
This leads to a navigation error e.g. on Codeberg (and other Forgeo/Gitea instances). However, if you only publish there, you can simply specify the relative repository path.
To avoid the need to work with absolute URLs for mirrored repositories, you can use a Markdown-based solution, as this works on both platforms. To keep the text alignment, links are enclosed in a div element.
and
As you can see, the paths are specified with a preceding dot
./, which is recognised by both platforms and resolved to give the correct repository path. However, this only works in Markdown, not in HTML.In my opinion, this is the cleanest solution that does not fundamentally damage the current documentation standard. What do you think? Further suggestions are very welcome. 🙂
Beta Was this translation helpful? Give feedback.
All reactions