carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Need a website for documentation

Open yadunandanbhat opened this issue 3 years ago • 14 comments

Can we get a simple readthedocs type of website for the carbon's documentation. Because its hard to navigate in github and the readability is not very good.

Its easy to convert the existing readme to documentation website using tools like mkdocs, kramdown, jekyll etc!

yadunandanbhat avatar Jul 21 '22 05:07 yadunandanbhat

I made a simple script for converting the markdown files under docs/ to HTML using pandoc: https://github.com/emlai/carbon-lang/commit/200eeb3de40303e11aa0a278008eadae71bd031c

You can see the result here: https://emlai.github.io/

It's still missing styles and a navigation bar, but the links seem to be working correctly.

emillaine avatar Jul 21 '22 16:07 emillaine

I'd be happy to work on this issue if it's open for anyone

Nike682631 avatar Jul 21 '22 18:07 Nike682631

I updated my branch to use mkdocs after I got it to handle absolute markdown links correctly. It adds a theme, a navbar, and a search, so it looks much better now: https://emlai.github.io/

There's still stuff to do:

  • It would be better to show the repository root readme on the front page.
  • Create a GitHub action for auto-deploying the site.
  • Organize the code snippets in a better way. Currently they're under Images > Front page snippets for Carbon.
  • Replace the logo with the Carbon logo.
  • Customize the theme to make it look less stock and more "Carbony".
  • etc.

@Nike682631 If you want to help, we can sync on the Discord!

emillaine avatar Jul 21 '22 19:07 emillaine

@emlai sure, what's your discord?

Nike682631 avatar Jul 21 '22 19:07 Nike682631

@Nike682631 emlai#9471

emillaine avatar Jul 21 '22 19:07 emillaine

great work @emlai !!!!

yadunandanbhat avatar Jul 22 '22 01:07 yadunandanbhat

We need a book, similar to rust book.

seanmrnda avatar Jul 22 '22 15:07 seanmrnda

recommendation to be studied => https://docusaurus.io/docs

joaodematejr avatar Jul 22 '22 21:07 joaodematejr

Best so far, convertible to pdf.

https://github.com/rust-lang/mdbook

seanmrnda avatar Jul 23 '22 08:07 seanmrnda

If you're working on a GitHub pages PR, one thing we've been cautious of is developers interpreting a documentation website as implicit encouragement to use Carbon in production. However, hopefully it's clear to most that Carbon isn't there.

To address that concern, can you maybe add a reminder at the top that Carbon is experimental and not intended for use in applications, linking to https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/faq.md#how-soon-can-we-use-carbon

jonmeow avatar Jul 23 '22 13:07 jonmeow

@jonmeow Good idea! I'll make sure to add that.

emillaine avatar Jul 23 '22 13:07 emillaine

I'm moving this to be an issue for leads as they've requested review (a proposal and some details of tradeoffs may be needed, and there's hesitance about whether a website makes sense for Carbon Language at this time). Just to note references: #1526 provides an implementation, and a sample is at https://emlai.github.io/.

jonmeow avatar Jul 26 '22 22:07 jonmeow

A website would be good for documentation. Also if there is an option for converting to pdf. It would be helpful

Tomttth avatar Aug 15 '22 14:08 Tomttth

A website would be good for documentation. Also if there is an option for converting to pdf. It would be helpful

our best bet is rust-lang/mdbook

https://github.com/rust-lang/mdBook

seanmrnda avatar Aug 16 '22 14:08 seanmrnda

@emlai I would be keen to collaborate on replicating your proposed website with my website generator nift.dev. Three dot point sales pitch:

  • Has LuaJIT embedded (though if there's a faster md->html converter can use that too);
  • Benchmarks way faster than even Hugo (who still brand themselves as world's fastest) plus has had incremental builds since 2015, people should have near instant build times when working on the website rather than having to twiddle their thumbs waiting for builds to finish;
  • Is developed in C++ which might be favourable to future Carbon devs who are likely to have C++ backgrounds (one common sentiment among web developers is they prefer to use tools developed in the languages they know like js, c++/carbon devs may be similar);

n-ham avatar Oct 24 '22 10:10 n-ham

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Jan 23 '23 02:01 github-actions[bot]

can I work on this? I came here from GsoC organization page........

ranbir7 avatar Feb 23 '23 14:02 ranbir7

can I work on this? I came here from GsoC organization page........

We use the "leads question" label for things that are awaiting a decision from the project leads about how to proceed. Until they decide that they want a website, and what they want from such, this isn't something that we would proceed on.

(note, it may help to discuss options on #gsoc on Discord)

jonmeow avatar Feb 23 '23 16:02 jonmeow

I would like to work on this. I have prior experience in writing documentation. Please assign me this issue. @jonmeow

AmayX avatar Mar 05 '23 05:03 AmayX

It is possible that a website, easily browsable and indexed by search engines, would help people who are not as comfortable with git and markdown as our current approach. It is definitely a more immersive experience to click around reading things and trying to see what Carbon is and isn't without having to think about the way the information is stored and presented. It would need to be generated from the material in git, so that it could not get out of sync, and we might need a "build step" when any of the source material changes.

We would need to be absolutely clear that this is a website for those helping to build Carbon, not for those wanting to use Carbon, and the the site going live doesn't carry information like "Carbon is open for business!" A top banner as in the provided example https://emlai.github.io/ would work, along with explanations in the places we provide links to this new site.

KateGregory avatar Mar 12 '23 18:03 KateGregory

Marking this as decided "yes" w/ @KateGregory's update for context, rationale, and the criteria.

chandlerc avatar Mar 13 '23 21:03 chandlerc

I would like to work on this...

ThePhilosopher4097 avatar Apr 04 '23 16:04 ThePhilosopher4097

I would like to work on this...

@ThePhilosopher4097 , we typically don't assign issues to people, see https://github.com/carbon-language/carbon-lang/blob/trunk/CONTRIBUTING.md#triage-analyze-or-address-bugs

josh11b avatar Apr 05 '23 16:04 josh11b