-
Notifications
You must be signed in to change notification settings - Fork 0
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
SCH-Nachtraege regenerated on each commit #2
Comments
This illustrates the difficulty in doing some things with Sphinx. schpref.htmlhttps://www.sanskrit-lexicon.uni-koeln.de/scans/csldev/csldoc/build/dictionaries/prefaces/schpref.html shows where in the final result these files are used. If you look at generated source of 'schpref.html ', you see that the two links (to schpref/SCH-Nachtraege.pdf and schpref/SCH-Nachtraege.htm) It seems to me that sphinx is regenerating these at every build -- that's why there are two other directories ('937c68..' and '54475...') that contain same pdf and htm from a prior sphinx-build. schpref.rstThe source file /source/dictionaries/prefaces/schpref/schpref.rst is responsible for directing sphinx-build to make those _downloads files. and the links in schpref.html to those files. Specifically, the two lines:
How to improve?Only the latest version of those two directories is used in the build. why did I choose sphinx?Basically it gets a lot of good press in the Python community. The readthedocs project is built on sphinx, for instance. And there are However, there is a steep learning curve, in my experience, with sphinx. And I have never gotten over the hump in feeling really comfortable with it. So it is quite possible that the way I use sphinx in csldoc could be done in a better way by a sphinx expert. Or, it is possible that some other static site generator would be better for csldoc; there might even be a good one based on markdown. |
readthedocs/readthedocs.org#3391 (comment) says to use relative path in downloads. Let us give it a try. |
Corrected the documentation in sphinx. |
Front matter as HTML - SCH html was once made my be.
|
No problem.
You upload the new file at https://github.com/sanskrit-lexicon/csldoc/tree/master/source/_static in this github repository. The cologne test server just pulls this git repository and rebuilds the documentation by sphinx.
Seems to be possible. |
@drdhaval2785 's solution much better than my original solution! Definitely suggest this be installed at Cologne. |
Just to be clear, let me rephrase this description in a more long-winded way: Currently, a 'cologne test server' is NOT at Cologne; rather it is some other machine, such as local Windows 10 computer. The details of setting up this test server are in the 'readme_dev.md' file of this |
Definitely will do that. |
Got it.
Thanks for the hint. Seems like a lot of work.
So it's a half-way stage, right? We would want to be able to command Cologne server from Github, right, @drdhaval2785 without any SSH? |
At the moment, I don't view this as either possible or a goal. |
So it makes sense that the cologne live server should update from github when we are absolutely sure that the tests are passing and we have not broken any working functionality. |
@funderburkjim, |
Alive or not, but this URL is dead. |
I don't understand what needs to be checked. |
Just to review ... https://github.com/sanskrit-lexicon/csl-doc/blob/master/readme_dev.md These instructions look up to date. As stated at the bottom 'Install at Cologne' section: You login to Cologne server via ssh, and make scans/csldev/csldoc current directory This pulls from Github 'https://github.com/sanskrit-lexicon/csl-doc/' repository to Cologne server. That's all to do.
Dhaval DID pushCurrently, a 'git log' in 'scans/csldev/csldoc' at Cologne server shows:
That commit '000356...' of Jun 28, 2019 by dhaval -- Looks like Dhaval DID push to Cologne. |
Cronjob issue is already being tracked elsewhere. |
https://github.com/sanskrit-lexicon/csldoc/tree/master/build/_downloads/09cca984256b9e8cf016eef03795270d
https://github.com/sanskrit-lexicon/csldoc/tree/master/build/_downloads/54475f1de8e885e0e1002c4648c078ca
Whenever I run the sphinx and there is some change, this file is regenerated in
build/_downloads/<commit_num>
folder.So is the case with https://github.com/sanskrit-lexicon/csldoc/tree/master/build/_downloads/9e7c68e748a0c9b272b71c57420e43fc and https://github.com/sanskrit-lexicon/csldoc/tree/master/build/_downloads/b8141a8956f3d5b4f0305ef54aa52082.
The text was updated successfully, but these errors were encountered: