sympy / sympy.github.com

SymPy's web page (sympy.org)
https://sympy.org/
188 stars 107 forks source link

Use CI to generate the html files, remove them from the repo #102

Closed certik closed 6 years ago

certik commented 6 years ago

The repository should only hold the sources, and all generated files should be handled by a CI.

bjodah commented 6 years ago

I guess Travis + Aaron's doctr would be a good match. Should the sources be in this repo under another branch, or should there be a separate repo holding the sources (and have the CI job of that repo push to this repo?)

certik commented 6 years ago

I think the master of this repo is what is used for the webpage, isn't it? So I think we should probably create a new repository and just push here, to avoid confusion where PRs should be sent.

asmeurer commented 6 years ago

We could use a different branch (GitHub lets you change the default branch). I also like the idea of having a separate website repo.

asmeurer commented 6 years ago

I am working on this. I have created a new sources branch, which is the default branch. I am setting up Travis with doctr to build and deploy it to the master branch, which should no longer be pushed to manually.

Currently I have it set so that all files are synced. We might want to update it so that everything is built into a build directory and only those files are synced.

certik commented 6 years ago

Thank you Aaron. Much appreciated.

asmeurer commented 6 years ago

Running into some doctr bugs. Should get things going once I get a doctr release out with the fix.

asmeurer commented 6 years ago

OK, I have the deploy working. I had to remove the submodule from the sources directory, meaning you won't be able to properly view the changes on your own system. I hope to get it added back in once I figure out how to make it work properly with doctr.

asmeurer commented 6 years ago

Alright, the static submodule is now back in the main sources branch.

I added some text to the README on how to update the files and view them. This can be closed now. All existing and new pull requests should be made against the sources branch. I'm going to enable branch protection as well, so that people cannot push to sources directly (Travis has to pass). Unfortunately, I can't do the same for master or it would break the deploy.