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

Create a documentation website #2

Open
marcosparagna-eb opened this issue Feb 1, 2019 · 7 comments
Open

Create a documentation website #2

marcosparagna-eb opened this issue Feb 1, 2019 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@marcosparagna-eb
Copy link

Something like using github pages and have a nice ui and api documentation!

@iusehooks iusehooks added the help wanted Extra attention is needed label Feb 1, 2019
@iusehooks
Copy link
Owner

Would like to have a github page with gatsbyjs ?

@vndre
Copy link

vndre commented Jul 23, 2019

Hello, thanks for this tool @iusehooks, helps us slowly migrate away from redux :)

I can help with the documentation site, I could built it using GitHub pages + GatbsyJS + Docz if you want, we can also use that time to fix #1 if there anything left still to improve.

@antoniopangallo
Copy link
Collaborator

Any help is welcome. Free to open a PR whenever you are done with the Doc. Thanks

@vndre
Copy link

vndre commented Aug 31, 2019

Hey guys! I said I would do the documentation... sorry for the delay.

But it's finally here! it should be compatible with github-pages, I recommend creating a Redhooks organization so you can use redhooks.github.io domain.

please check it out at: https://github.com/anskydev/redhooks-docs

feedback is appreciated.

@vndre
Copy link

vndre commented Aug 31, 2019

I uploaded a live test version at: http://redhooksdocs.cerberus.ansky.sh/

@antoniopangallo
Copy link
Collaborator

I think it is nice, you should open a PR. You have used Gatsby so have look at https://www.gatsbyjs.org/docs/how-gatsby-works-with-github-pages/ . Thanks

@vndre
Copy link

vndre commented Sep 3, 2019

Unfortunately I have never added gh-pages to an existing repo. Can you help me understand how I should proceed?

This is what I understand:

  1. If you want to use the same repo to host documentation I must push all documentation repo files to a folder in the master branch

  2. Gatsby build script will create a docs folder in the master branch

  3. you configure Github to use master/docs/index.html as entry point for Pages.

But that mixes both codebases, meaning people that clone this repo will also fetch documentation source files, is it supposed to work like this?

I think the other approach is easier and better separated: using gh-pages package you can build to another repo. You could have all documentation files lying on my repo and use publish script to output built files into this repo gh-pages branch. Thats better IMO, because you wouldn't be fetching all those unnecessary files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants