Skip to content

chore(docs): add README to the docs #3582

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

Closed
wants to merge 2 commits into from
Closed

Conversation

BrunoQuaresma
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 9, 2021

Codecov Report

Merging #3582 (4513d1e) into main (d8c3ba6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3582   +/-   ##
=======================================
  Coverage   59.21%   59.21%           
=======================================
  Files          35       35           
  Lines        1709     1709           
  Branches      379      379           
=======================================
  Hits         1012     1012           
  Misses        559      559           
  Partials      138      138           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8c3ba6...4513d1e. Read the comment docs.

@jsjoeio jsjoeio added the docs Documentation related label Jun 9, 2021
@jsjoeio jsjoeio self-assigned this Jun 9, 2021
@jsjoeio jsjoeio added this to the 3.11.0 milestone Jun 9, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 9, 2021

We're working on the security fix so you can ignore the audit-ci failure.

For additional context, we're adding this because Bruno is working on deploying the code-server docs to a site and we need a Markdown file to render fo the home page. We'll most like change this later!

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 9, 2021

I had an idea. @BrunoQuaresma instead of adding this file to /docs and duplicating README.md, could we add a script that just copies the README.md at the root to the /docs folder when we deploy the docs?

@JammSpread
Copy link
Contributor

JammSpread commented Jun 12, 2021

Does it have to be duplicated, couldn't the README just be moved to the 'docs/' folder since according to this:

If you put your README file in your repository's root, docs, or hidden .github directory, GitHub will recognize and automatically surface your README to repository visitors.

Although that may decrease the intuitiveness/simplicity of the repository and thus be a bad idea.

@BrunoQuaresma
Copy link
Contributor Author

Thanks @JammSpread I didn't know about this one. I will try that.

@BrunoQuaresma
Copy link
Contributor Author

The badge can be a problem for what we are trying to achieve with these changes - have a doc site for code-server docs. I'm wondering if makes sense we have something similar to what react-query does on their repo: https://github.com/tannerlinsley/react-query. @jsjoeio @JammSpread thoughts?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 15, 2021

I'm wondering if makes sense we have something similar to what react-query does on their repo:

Sorry @BrunoQuaresma - a bit dense this morning. What am I looking at in react-query's repo? I see their badges in the README. Or do you mean how the README is very short and then they have the /docs repo?

I do like what @JammSpread suggested. If GitHub surfaces the README.md that could be a solid approach.

@BrunoQuaresma
Copy link
Contributor Author

BrunoQuaresma commented Jun 15, 2021

Or do you mean how the README is very short and then they have the /docs repo?

Yes, I was talking about that.

I do like what @JammSpread suggested. If GitHub surfaces the README.md that could be a solid approach.

Me too, but I faced some issues trying to load the badge images with our current markdown parser and I was not able to solve 😞. Because of that, I think the first option can be a good approach for now.

We can have a README on root with the badges and a brief summary, and a docs/README.md with a more complete introduction. What do you think?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 15, 2021

We can have a README on root with the badges and a brief summary, and a docs/README.md with a more complete introduction. What do you think?

I think that could work. As long as we add a short blurb like "look in /docs for more documentation` or something, should be fine!

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 16, 2021

I faced some issues trying to load the badge images with our current markdown parser

Would it be better if the badges were listed using HTML instead of markdown? We have options. See https://shields.io/

image

@bpmct
Copy link
Member

bpmct commented Jun 17, 2021

I would be much more in favor of doing one of these options:

  1. Use shields.io (like @jsjoeio suggested)
  2. Update our hosted docs detect and to hide the shields from the root-level README
  3. Change the codecov link (or whatever one is breaking outside of the repo) to show cdr/code-server stats, regardless where it is hosted.
  4. Remove the culprit image

Reasoning being:

  • We won't have to manually copy over ./README.md -> ./docs/README.md, or set a prescience for doing it (every release, every commit, etc?)
  • docs/README.md can simply inform users of the hosted site

@bpmct
Copy link
Member

bpmct commented Jun 17, 2021

I would also be in favor of a slimmed down ./README.md in favor of a larger one here. Not a fan of the duplication, but if necessary, we can go that route.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 22, 2021

@BrunoQuaresma anything you need from us to help you move this forward?

@BrunoQuaresma
Copy link
Contributor Author

@jsjoeio I'm just aligning stuff with @bpmct before move forward, thanks for ask.

@bpmct
Copy link
Member

bpmct commented Jun 23, 2021

We will likely be able to render the root-level README (with shields, if we want). So we will likely not need a second README in docs/. Still going over details :)

@bpmct
Copy link
Member

bpmct commented Jun 24, 2021

Does it have to be duplicated, couldn't the README just be moved to the 'docs/' folder since according to this:

If you put your README file in your repository's root, docs, or hidden .github directory, GitHub will recognize and automatically surface your README to repository visitors.

Although that may decrease the intuitiveness/simplicity of the repository and thus be a bad idea.

@jsjoeio What are your thoughts on moving the readme as suggested above? This would reduce the complexity for the docs site

see https://github.com/bpmct/test-readme

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 24, 2021

Thanks for the test repo. Seems fine to me too! I'll see if @code-asher or @oxy want to weigh in

@BrunoQuaresma
Copy link
Contributor Author

I opened up a new PR to move the README. I will close this one, when we get that merged to no break the code-server docs build.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 28, 2021

I see #3663 has been merged. Does that mean we should close this @BrunoQuaresma?

@BrunoQuaresma
Copy link
Contributor Author

@jsjoeio yes, doing it right now.

@BrunoQuaresma BrunoQuaresma deleted the add-readme-on-docs branch June 28, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants