Weird way of showing repositories readme #925

Open
opened 3 weeks ago by Theaverageuser · 12 comments

# What do you want to address?

  • Bug
  • Feature
  • Suggestion

# Describe your matter briefly




well the problem is it is showing the format of my readme in a weird way as compared to my original repository
https://codeberg.org/Theaverageuser/Foss_Android_app.
if you look here, you will expect some normal documents but as seen in the picture, its kinda weird

What did you expect?




A normal looking like the codeberg version of the readme's.

Some additional details

  • The version of Gitea you are using:
  • The version of GitNex you are using: 3.5.1
  • Source of installation (Play Store, F-Droid, APK): F-droid
  • Current android version and phone model/manufacturer: Samsung Galaxy Tab A SM P555. android 7.1.1
  • The type of certificate your instance is using (self-signed, signed): GPL V3
  • How you used to log in (via password or token):

    token
We would appreciate some screenshots or stacktrace's, but this is also not required.



Thank you for your time.

## # What do you want to address? <!-- This step is required; examples are shown below --> - [x] Bug - [ ] Feature - [ ] Suggestion ## # Describe your matter briefly <!-- This step is required. --> <br><br> well the problem is it is showing the format of my readme in a weird way as compared to my original repository https://codeberg.org/Theaverageuser/Foss_Android_app. if you look here, you will expect some normal documents but as seen in the picture, its kinda weird ##### What did you expect? <!-- Useful when addressing bugs --> --- <!-- This step is optional. --> <br><br> A normal looking like the codeberg version of the readme's. ##### Some additional details <!-- Useful, when we are trying to reproduce a bug --> --- <!-- This step is optional; an example is shown below --> * The version of **Gitea** you are using: * The version of **GitNex** you are using: 3.5.1 * Source of installation (Play Store, F-Droid, APK): F-droid * Current android version and phone model/manufacturer: Samsung Galaxy Tab A SM P555. android 7.1.1 * The type of certificate your instance is using (self-signed, signed): GPL V3 * How you used to log in (via password or token): <br> token ##### We would appreciate some screenshots or stacktrace's, but this is also not required. --- <!-- Screenshots and stacktrace's can go here. --> <br><br> - [x ] I carefully read the [contribution guidelines](https://codeberg.org/GitNex/GitNex/src/branch/main/CONTRIBUTING.md). <br> #### Thank you for your time.
opyale added the
Upstream
UI/UX
labels 3 weeks ago
Collaborator

@gitnex/Code-Managers We could use Gitea's API to render Markdown documents. This would require using some kind of webview though, which is probably pretty bad for performance.

@gitnex/Code-Managers We could use [Gitea's API](https://codeberg.org/api/swagger#/miscellaneous/renderMarkdown) to render Markdown documents. This would require using some kind of webview though, which is probably pretty bad for performance.
Poster

huh. But it would help in the markdown format and also would help solve this error. Having two different output is not a greatthing

huh. But it would help in the markdown format and also would help solve this error. Having two different output is not a greatthing
opyale self-assigned this 3 weeks ago
Collaborator

I've been working on this for a few hours now and found that the API in it's current state is (almost) unusable for us. For the sake of future reference I will mention a few big flaws here:

  • Links to images embedded into comments are relative and cannot be resolved easily.

  • The API's documentation is really bad and it's implementation is even worse: Sending tons of "rendering requests" from potentially thousands of Gitnex clients will most definitely end in a denial of service attack or causes the instance to crash as it has no chance to allocate more memory.

  • Network traffic will be huge since we first have to receive a comments content, then send it back in order to finally retrieve the rendered result. This is not only extremly inefficient and slow; it can also be extremly costly. Depending on what you pay for mobile data, this can increase your bill by a significant amount.

  • The biggest dealbreaker of all probably is that the API doesn't support standalone HTML rendering. You would have to load and embed external CSS files (which is a no-go when using Html.fromHtml()) in order to get even half-decent results.

TLDR; We will probably have to stick with the current solution until someone addresses all of these issues @ Gitea. (Which I'm sure will not happen in the next two years unless you believe in miracles)

I've been working on this for a few hours now and found that the API in it's current state is (almost) unusable for us. For the sake of future reference I will mention a few big flaws here: - Links to images embedded into comments are relative and cannot be resolved easily. - The API's documentation is really bad and it's implementation is even worse: Sending tons of "rendering requests" from potentially thousands of Gitnex clients will most definitely end in a denial of service attack or causes the instance to crash as it has no chance to allocate more memory. - Network traffic will be huge since we first have to receive a comments content, then send it back in order to finally retrieve the rendered result. This is not only extremly inefficient and slow; it can also be extremly costly. Depending on what you pay for mobile data, this can increase your bill by a significant amount. - The biggest dealbreaker of all probably is that the API doesn't support standalone HTML rendering. You would have to load and embed external CSS files (which is a no-go when using [``Html.fromHtml()``](https://developer.android.com/reference/android/text/Html)) in order to get even half-decent results. TLDR; We will probably have to stick with the current solution until someone addresses all of these issues @ Gitea. (Which I'm sure will not happen in the next two years unless you believe in miracles)
opyale added the
Blocked
label 3 weeks ago
Poster

Sorry for wasting your time and huh. This is sad. :(. Waiting two years is a long time to write a document lol. But Oh well. And this is codeberg, not Gitea. Huh? Why did you check Gitea?

Sorry for wasting your time and huh. This is sad. :(. Waiting two years is a long time to write a document lol. But Oh well. And this is codeberg, not Gitea. Huh? Why did you check Gitea?
Collaborator

Sorry for wasting your time and huh.

Don't worry, you're not wasting my time. In fact, it was my own decision to work on this issue. 😉

This is sad. :(. Waiting two years is a long time to write a document lol. But Oh well.

It would require a lot of work for all these issues to be fixed properly. Since Gitea is just an open-source project and not a company, there's probably not many people who can spend their entire time working on this exact issue.

And this is codeberg, not Gitea. Huh? Why did you check Gitea?

Codeberg is running Gitea. Gitea can also be found on gitea.com, but "Gitea" itself is just the name of the project which is being developed here. Codeberg is just a "Gitea instance" like many others. You can even host your own Gitea instance if you really wanted to. 🙂

> Sorry for wasting your time and huh. Don't worry, you're not wasting my time. In fact, it was my own decision to work on this issue. 😉 > This is sad. :(. Waiting two years is a long time to write a document lol. But Oh well. It would require a lot of work for all these issues to be fixed properly. Since Gitea is just an open-source project and not a company, there's probably not many people who can spend their entire time working on this exact issue. > And this is codeberg, not Gitea. Huh? Why did you check Gitea? Codeberg is running Gitea. Gitea can also be found on [gitea.com](https://www.gitea.com), but "Gitea" itself is just the name of the project which is being developed [here](https://github.com/go-gitea/gitea). Codeberg is just a "Gitea instance" like many others. You can even host your own Gitea instance if you really wanted to. 🙂
Poster
  • Oh Ok. Thanks for checking the issue out. I used gitnex because codeberg IDE on android is garbage like no joke. The company reccomended me this. Thanks for the help and insight on this matter. Now let me cry at a corner for finding a way to use good IDE on android for codeberg
* Oh Ok. Thanks for checking the issue out. I used gitnex because codeberg IDE on android is garbage like no joke. The company reccomended me this. Thanks for the help and insight on this matter. Now let me cry at a corner for finding a way to use good IDE on android for codeberg
Collaborator

Well if it would take two years is just a guess ... but yes until you dont put bounties on those issues they can lay around for long time :/

And some are hard to do or time consuming and so they did not land jet beside having a bounty

You are searching for an IDE? Codeberg is only a code hosting solution with smal code editor ...

If you like to have a full featured ide you should develop on a pc with NetBreans or VSCode etc...

Well if it would take two years is just a guess ... but yes until you dont put bounties on those issues they can lay around for long time :/ And some are hard to do or time consuming and so they did not land jet beside having a bounty You are searching for an IDE? Codeberg is only a code hosting solution with smal code editor ... If you like to have a full featured ide you should develop on a pc with NetBreans or VSCode etc...
Poster
  1. even pasting on android is amazingly annoying.
  2. I do not have laptop and cannout buy one.
  3. I mean I can have an app IDE on an android buuut Github has a good built in one and I was wondering when will codeberg do it.
  4. Coding on the fly is a useful thing.
1) even pasting on android is amazingly annoying. 2) I do not have laptop and cannout buy one. 3) I mean I can have an app IDE on an android buuut Github has a good built in one and I was wondering when will codeberg do it. 4) Coding on the fly is a useful thing.
Collaborator
  1. even pasting on android is amazingly annoying.
  2. I do not have laptop and cannout buy one.
  3. I mean I can have an app IDE on an android buuut Github has a good built in one and I was wondering when will codeberg do it.
  4. Coding on the fly is a useful thing.

I don't think there's any fully-fledged IDE available for android, but you could try installing VS Code which is still a pretty powerful editor.

This would require you to install Termux, a terminal emulator, which you can then use to install code-server. A guide on how to install "code-server" can be obtained here.

> 1) even pasting on android is amazingly annoying. > 2) I do not have laptop and cannout buy one. > 3) I mean I can have an app IDE on an android buuut Github has a good built in one and I was wondering when will codeberg do it. > 4) Coding on the fly is a useful thing. I don't think there's any fully-fledged IDE available for android, but you could try installing VS Code which is still a pretty powerful editor. This would require you to install [Termux](https://f-droid.org/de/packages/com.termux/), a terminal emulator, which you can then use to install [code-server](https://github.com/cdr/code-server). A guide on how to install "code-server" can be obtained [here](https://github.com/cdr/code-server/blob/main/docs/termux.md#installation).
Poster

Don't worry. I only plan to write some documents in coding format along with link sharing. I am not planning on app making or graphic design. my tab will die with the extra workload

Don't worry. I only plan to write some documents in coding format along with link sharing. I am not planning on app making or graphic design. my tab will die with the extra workload
Owner

@Theaverageuser Maybe you can specify what coding format you are after, Markdown? Html? That would narrow down the hunt.

The current Markdown library we use is not that great and there are glitches here and there, specially in linkings and tables.

I don't know if we can in the future just fork it and extend/fix it to our needs.

@Theaverageuser Maybe you can specify what coding format you are after, Markdown? Html? That would narrow down the hunt. The current Markdown library we use is not that great and there are glitches here and there, specially in linkings and tables. I don't know if we can in the future just fork it and extend/fix it to our needs.
Poster

markdown.And I do use links a tables. A LOT. Soo yeah. There's your problem

markdown.And I do use links a tables. A LOT. Soo yeah. There's your problem
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.