pretzel icon indicating copy to clipboard operation
pretzel copied to clipboard

Use Pretzel and Github Pages for Pretzels own doc's.

Open biohazard999 opened this issue 5 years ago • 21 comments

It would be cool if we could use GithubPages and pretzel it self to build the documentation. This way it would be possible to contribute to documentation and help without the need of githubs wiki system.

Proposed solutions:

  1. Single Repo approach
  • Configure GithubPages with the master branch and docs folder
  • Add a pretzel site to the project under _docs (or something similar) and output the site to docs.
  • Add a build step that the pretzel site will be built The only disadvantage of this is, if we change the documentation, we need to build the site with pretzel and checkin the content's of docs folder by hand (or create an automated commit on the current branch on Appveyor, but I don't know if this is possible?)
  1. Multiple Repo approach Use a seperate repository like explained by Devon Burriss But working with submodules is so painful...

This will address #141

biohazard999 avatar Sep 28 '19 09:09 biohazard999

Nice idea, I wanted to improve the site that is already using github pages on the gh-pages branch but haven't thought of adding the docs.

laedit avatar Sep 28 '19 12:09 laedit

I agree to move the generated site source to a docs repo instead of having it in another branch.

It is possible to create and push a commit from AppVeyor, I already do something similar for some of my sites.

laedit avatar Sep 28 '19 12:09 laedit

I agree to move the generated site source to a docs repo instead of having it in another branch.

Do you really want to make a repo? Or did you ment folder?

It is possible to create and push a commit from AppVeyor, I already do something similar for some of my sites.

👍

biohazard999 avatar Sep 28 '19 12:09 biohazard999

Do you really want to make a repo? Or did you ment folder?

Folder, sorry. I haven't the rights to create another repo in Code52 so the folder should do it :)

laedit avatar Sep 28 '19 12:09 laedit

Is github pages enabled? It kinda has to be, cause http://code52.github.io/pretzel redirects to http://code52.org/pretzel/

biohazard999 avatar Sep 28 '19 12:09 biohazard999

Of course it is cause there it's https://github.com/Code52/code52.github.com That would conflict with the idea.... Cause i felt in this trap my own cause i had an old GHP repo laying around in my profile

biohazard999 avatar Sep 28 '19 12:09 biohazard999

Which isn't built with pretzel on it's own, what an irony 😆

biohazard999 avatar Sep 28 '19 12:09 biohazard999

Yep it already is, using the gh-pages branch and the custom domain http://code52.org. That won't conflict because https://github.com/Code52/code52.github.com handle the main site and th github page on the pretzel repo handles the code52.org/pretzel part.

Well, github use Jekyll to generate the site so this is a good opportunity to check the equivalence with pretzel :) And remove the need to generate the site during the AppVeyor build.

laedit avatar Sep 28 '19 13:09 laedit

But as far as i tested if there is a organization gh-page it's not possible to use gh-pages for the repositories :/

biohazard999 avatar Sep 28 '19 13:09 biohazard999

Well github says that it is possible:

A Project Pages site for an organization account is available at http(s)://<orgname>.github.io/<projectname>.

laedit avatar Sep 28 '19 13:09 laedit

To be sure, we just have to modified the gh-pages branch in pretzel repo (like adding an html comment) and see if it appears on http://code52.org/pretzel/ :)

laedit avatar Sep 28 '19 13:09 laedit

I don't even know where this comes from 🤷‍♂️ I just looked into the repo and can't find a clue where this lives or where this does come from...

biohazard999 avatar Sep 28 '19 13:09 biohazard999

Ahhhh.

biohazard999 avatar Sep 28 '19 13:09 biohazard999

https://github.com/Code52/pretzel/tree/gh-pages

laedit avatar Sep 28 '19 13:09 laedit

I have switched the github pages settings to use the docs folder in master instead of the gh-pages branch.

laedit avatar Sep 30 '19 13:09 laedit

Does this work on your side?

Is github pages enabled? It kinda has to be, cause http://code52.github.io/pretzel redirects to http://code52.org/pretzel/

seams like it still redirects to the old page?

biohazard999 avatar Sep 30 '19 14:09 biohazard999

The url won't change, github page is configured to serve it to http://code52.org/pretzel/ But I can guarantee that it works, I received a mail from github to correct some old markdown parameters :)

laedit avatar Sep 30 '19 14:09 laedit

Awesome! Now we only start using pretzel to build the docs 👍

biohazard999 avatar Sep 30 '19 14:09 biohazard999

Apart if we need to use some specific plugins, since github pages use Jekyll it is a good way to check that we have parity with jekyll (at least for functionalities used by the docs).

laedit avatar Oct 01 '19 03:10 laedit

We could do some kind of snapshot testing for that?

biohazard999 avatar Oct 01 '19 06:10 biohazard999

That's a good idea, but it will need a thorough followup on each jekyll release.

laedit avatar Oct 01 '19 06:10 laedit