Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation quality #20

Open
1 task
SodaWithoutSparkles opened this issue May 26, 2023 · 33 comments
Open
1 task

Improve documentation quality #20

SodaWithoutSparkles opened this issue May 26, 2023 · 33 comments

Comments

@SodaWithoutSparkles
Copy link

SodaWithoutSparkles commented May 26, 2023

  • [ ] Add detailed guide on how to get openjdk
For Zulu:
winget install --id Azul.Zulu.17.JDK

For Adoptium/Temurin:

winget install --id EclipseAdoptium.Temurin.17.JDK

For Microsoft:

winget install --id Microsoft.OpenJDK.17
  • [ ] detailed how-to guide on how to re-log microG in another .md file to prevent it getting too long
Example # no internet connection symptomes: offline, no internet caused by: change of password, etc. solution: re-login microG. Consult [wiki: re-log microG](link) for details.
  • Add wireframe as visual reference
image
@oSumAtrIX
Copy link
Member

Please edit & update the issue body & title instead of making a new comment

@ReVanced ReVanced deleted a comment from SodaWithoutSparkles May 26, 2023
@oSumAtrIX oSumAtrIX changed the title [Tracking] Various improvements on different documentations Improve documentation quality May 26, 2023
@oSumAtrIX
Copy link
Member

Add detailed guide on how to get openjdk

This is too off-topic for the scope of ReVanced, and it's documentation. The requirement is to have the SDK installed, how you do it, is not relevant to ReVanced.

@oSumAtrIX oSumAtrIX added the waiting on author Further information is requested label May 26, 2023
@SodaWithoutSparkles
Copy link
Author

Add detailed guide on how to get openjdk

This is too off-topic for the scope of ReVanced, and it's documentation. The requirement is to have the SDK installed, how you do it, is not relevant to ReVanced.

Ofc not at the main page. Create another resources section for downloading/installing. Or redir to other resources like the arch wiki.

@oSumAtrIX
Copy link
Member

At max a footer can be added to things like the requirements, that link to the places. For example the Java JDK requirement can have a footer to the Java JDK download page

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 6, 2023

At max a footer can be added to things like the requirements, that link to the places. For example the Java JDK requirement can have a footer to the Java JDK download page

That is a solution. But using winget is probably more efficient and harder to screw up. Thats the whole reason that I want a separate page. Linking them w/o providing any explanations is not the proper thing to do.

Sth like:


To get openjdk-17, you can choose one of the following varients:

  • Zulu (recommended)
  • Adoptium
  • Microsoft

Zulu

To install the Zulu openjdk-17, visit their official site to download, or paste the following in a powershell window to run winget if you are on windows:

winget install --id Azul.Zulu.17.JDK

Visit the official website for detailed installation guide on Windows, debian-based Linux distros, or macOS.

@oSumAtrIX
Copy link
Member

Winget is microsoft windows specific. This guide is not

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 6, 2023

How about the edited one

E: Sorry for double comment, github mobile being github mobile sometimes.

@oSumAtrIX
Copy link
Member

Too complicated. Asking Java as a prerequisite and linking to where to get it is enough. Downloading and installing Java isn't a concern of this guide.

@aksel
Copy link

aksel commented Jun 12, 2023

It would be helpful to have a visual reference for some UI patches. For example, when patching YouTube, I found it difficult to figure out what the Hide Info Cards patch referred to. Confusingly, there's a similar sounding Hide Info Panels option in layout options, but I'm unsure whether they're related. I remain unsure what UI elements I hide if I apply the patch and enable that option.

Having a visual reference would clear it right up. Some are obvious, but many are not.

Not sure if this is what you refer to by wireframe, apologies if my comment is redundant.

@SodaWithoutSparkles
Copy link
Author

@aksel That seems like there should be a documentation for, but maybe in the patches repo. @oSumAtrIX your thoughts?

@oSumAtrIX
Copy link
Member

Descriptions can be used

@aksel
Copy link

aksel commented Jun 14, 2023

Some of them are still quite cryptic, in my opinion.

Take for example hide-album-cards, which is described as "Hides the album cards below the artist description.". I can sorta guess my way around it, but it would be very helpful to just show a screenshot instead to remove any doubt.

@oSumAtrIX
Copy link
Member

Images are difficult to keep up to date, we would either need to embed them as resources or link to them and if we link them we need to think about where to upload them, how to keep them online and also consider leaking IPs to the uploading site

@SodaWithoutSparkles
Copy link
Author

Images are difficult to keep up to date,

Just give a rough idea of what that is for is fine. For example, it does not matter what style the info card is, you will know that it is "the thing that pops up at upper-right" just by knowing any of the versions.

we would either need to embed them as resources or link to them and if we link them we need to think about where to upload them, how to keep them online and also consider leaking IPs to the uploading site

Just use GitHub as the image CDN. When you push changes to github it would be updated.

@oSumAtrIX
Copy link
Member

I don't know if abusing GitHub as an image CDN is allowed

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 14, 2023

How else do they expect you to make github pages? Anyway, I saw people using discord CDN and oracle free tier VPS too.

Or maybe imgur is also an option.

@oSumAtrIX
Copy link
Member

GitHub may be using different CDN for pages.

Imgur is a third party, to which the questions that I mentioned earlier above apply.

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 14, 2023

No, I mean github pages generated with the repo's readme. When you want to include images in the readme, most likely you would upload the images to github and fetch the raw image link. When you upload an image to github issues, it also uses the github domain, as shown below:

review_2x.png
Source: xkcd 2192

As the patch descriptions should be in the patches repo, the images could live in the same repo as the descriptions. Or they could live in a repo called sth like revanced-resources as the images are raw binary files.

@oSumAtrIX
Copy link
Member

The images are supposed to be served on the respective GitHub page, and not abused as a general purpose CDN outside of GitHub

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 14, 2023

So the solution is to make a .md file in the revanced-patches repo and create the description in said .md file, therefore satisfying the requirement. If you want this to be served somewhere else just link the .md file. This also adheres to the rule of "documentations should be placed in the relevant repos".

If the situation somehow changed and we need to move away from github entirely, we could either serve the files and images from revanced owned server behind cloudflare cache (sth like static.revanced.app), or serve the .md files with the repo (with alt-text of images) and images via other CDN services which we will find later.

The binary images file might be stored in another repo as binary files are handled poorly by the git protocol and will cause the repo size skyrocket.

Also, isn't linking from the source instead of downloading & re-uploading the "better" way of doing things on the internet as it sorta gave some attribution?

@oSumAtrIX
Copy link
Member

The images wouldn't be able to be showed on ReVanced Manager for example if it were only in Markdown files. Additionally images have to be uploaded regardless so the issue doesn't change

@SodaWithoutSparkles
Copy link
Author

The images wouldn't be able to be showed on ReVanced Manager for example if it were only in Markdown files.

Maybe launch a android webview instance?

Additionally images have to be uploaded regardless so the issue doesn't change

To github.

At this point anything is better than nothing unless it is blatantly wrong and totally misleading.

@oSumAtrIX
Copy link
Member

Maybe launch a android webview instance?

Highly unpractical. The image should be shown under each respective patch.

To github.

As explained earlier:

#20 (comment)
#20 (comment)

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 15, 2023

Highly unpractical. The image should be shown under each respective patch.

That would be even more unpractical as it would take up too much space. How about a info button next to the patch?

Clicking the info button would link to the respective entry.

Edit: If you want the image to be in manager why dont embed it within manager?

Maybe we should clarify, where should the description be stored? I was thinking that there should only be a single source of the instance which is the single file in the patches repo.

@oSumAtrIX
Copy link
Member

That would be even more unpractical as it would take up too much space.

No, it would be highly practical as it can be displayed without loading GitHub via a web view.

How about an info button next to the patch?

The image can be shown below; it doesn't matter; the initial problem exists in the end in the end.

Edit: If you want the image to be in manager why dont embed it within manager?

Because ReVanced Manager is patch agnostic.

where should the description be stored

The description is already stored as an annotation for each patch.

@SodaWithoutSparkles
Copy link
Author

SodaWithoutSparkles commented Jun 15, 2023

After a lengthy discussion in discord, the final conclusion is to

  1. Embed metadata descriptions and inages in the patches
  2. Generate a .md file from information in 1 for cli users, link them to cli
  3. @Metadata(description="", images=[""])

@oSumAtrIX
Copy link
Member

  1. Markdown files aren't meant to be consumed by ReVanced CLI.

@SodaWithoutSparkles
Copy link
Author

Link them from github repo or revanced.app

@oSumAtrIX
Copy link
Member

Not really a clean solution as the image would be present as a resource file for the patch and as an asset in the repository

@SodaWithoutSparkles
Copy link
Author

How else? Launch GUI viewer? Use sth like jp2a to convert?

Better than nothing at least.

@oSumAtrIX
Copy link
Member

The CLI can not show images. It will simply not be available. At max it can dump the image file

@SodaWithoutSparkles
Copy link
Author

Yeah, maybe dump the image file in cache and prompt the user to view it when they list patches

@oSumAtrIX oSumAtrIX removed the waiting on author Further information is requested label Jul 20, 2023
@oSumAtrIX
Copy link
Member

oSumAtrIX commented Jul 31, 2023

Currently, we lack the ability to create proposed wireframes; for that reason, this issue is stale; in case you have no solution to this, the issue will be closed due to being out of our scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants