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

doc: Add per-device pages #120

Merged
merged 28 commits into from Apr 5, 2020
Merged

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Apr 4, 2020

They will automatically embed the content of README.adoc from the device folder.

TODO

  • Rewrite the gnarly bash in a ruby script
  • Embed generic instructions for e.g. Android
Rewrite the gnarly bash in a ruby script

I went one step too far, and I need a real programming language with real handling of strings to deal with some of the "magic" in handling those files.

This will also be useful for the next TODO, as it will reduce the headaches.

Basically, apply the same logic, but in a more manageable way.

Embed generic instructions

Templated instructions will be needed. They should automatically be added to a device page according to its system type.

Some things to consider:

  • Android A/B systems
  • Android boot as recovery

So it'll need a bit more parameterization than simply relying on the system type.

Another thing to consider is that those documentation files should be trivial enough to work with, so likely flat .adoc files, though highly possibly templated with .erb.

The headings have been pushed one lower.
Most of that fluff is about an upcoming feature, for per-device pages.
Still linking to the GitHub pages, but still a step forward.
Put the identifier first, since this is what they're sorted on.

Then, put Manufacturer and Name in their own column.
This is to be used by the documentation system, without requiring to
repeat all of the code.
@samueldr samueldr added the 4. type: enhancement New feature or request label Apr 5, 2020
@samueldr
Copy link
Member Author

samueldr commented Apr 5, 2020

Some system types have no documentation, but that's not something that should stop this from being merged.

The most important bits (android-based devices, and the pinephone) have appropriate documentation.

@samueldr samueldr merged commit a1c0e42 into NixOS:master Apr 5, 2020
@samueldr samueldr deleted the docs/improvements branch April 5, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant