this post was submitted on 06 Sep 2024
26 points (100.0% liked)

Ask Lemmy

26734 readers
2055 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

Hello all!

I'm documenting a small FOSS project, and I'm looking for some soft that translates a documentation into a web page.

Something simple, with a side board that links the pages/titles/sub-titles, and is PC and Mobile compatible. Basically images, italics, bold and links, with titles and subtitles, would be nice ๐Ÿ™‚.

Like the Lemmy install guide for example: https://join-lemmy.org/docs/administration/install_docker.html

Any recommendations?

Thank you all!

top 15 comments
sorted by: hot top controversial new old
[โ€“] n0xew@lemmy.world 4 points 2 months ago (1 children)

You can have a look at hugo, with some simple theme like hugo-book

[โ€“] Valmond@lemmy.world 1 points 2 months ago

The example site is a bit cluttered, but maybe that's just optional, will check out, thanks!

[โ€“] mp3@lemmy.ca 3 points 2 months ago (1 children)

VitePress might be what you're looking for.

[โ€“] Valmond@lemmy.world 1 points 2 months ago

Tried it but how do you actually build the static html files? It's only explaining how to run the site through some sort of java script machinery?

Nice otherwise, thanks!

[โ€“] grandel@lemmy.ml 2 points 2 months ago (1 children)

I like mkdocs because it generates the entire site from markdown files

[โ€“] Valmond@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

Thanks, I just tested mdBook and it does just that, it's great!

[โ€“] Ephera@lemmy.ml 2 points 2 months ago (1 children)

That Lemmy guide uses mdBook: https://rust-lang.github.io/mdBook/

It originates from the Rust ecosystem, but it's basically language agnostic.
You basically provide it Markdown files in a certain file structure and then it does the rest. Really easy to use.

[โ€“] Valmond@lemmy.world 1 points 2 months ago (1 children)

Very nice! Seems like a hassle to install though, but I'll definitely check it out, looks exactly what I'm looking for (as long as you can throw in images, didn't see that at my first very brief glance).

[โ€“] Ephera@lemmy.ml 2 points 2 months ago (2 children)

Hmm, I think, you can download one of the .tar.gz files from here: https://github.com/rust-lang/mdBook/releases
Unpack it and then just run the executable that's inside.

And yes, images are absolutely possible.
You can just place the image file in the file structure and then in your Markdown file, you can use this syntax:

![Optional description for sight-impaired users](relative/path/to/image.png)

I usually create an "images" sub-folder next to the Markdown file, then it's just:

![](images/something.png)
[โ€“] Valmond@lemmy.world 2 points 2 months ago

Very nice, will definitely check out!

Seems like exactly what I'm looking for.

[โ€“] Valmond@lemmy.world 2 points 2 months ago

Update, works wonders thank you so much! ๐Ÿ’–

[โ€“] vk6flab@lemmy.radio 2 points 2 months ago (1 children)

My go-to for this is pandoc, it takes markdown and can generate html, pdf, word, OpenOffice and other formats.

Because it uses markdown, you can use version control and grep on your documentation and include it with your source code.

[โ€“] Valmond@lemmy.world 1 points 2 months ago (1 children)

Thanks, but for now I think that looks like overkill for my small needs.

[โ€“] vk6flab@lemmy.radio 1 points 2 months ago (1 children)

It's really simple to use, and markdown is essentially plain text.

[โ€“] Valmond@lemmy.world 1 points 2 months ago

I haven't tried yet, but it seens like a lot to just get up and running, will check out if that other one doesn't make static websites.