-
Notifications
You must be signed in to change notification settings - Fork 361
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
Fix #2687: scripts/makedocs now checks that required software is installed #3778
base: main
Are you sure you want to change the base?
Conversation
I believe that you have a long standing and continuing interest in this area. I believe there I re-worked some of your prior work in the Contributor's QuickStart page. I understand if you are flat-out and do not have time. Thanks |
|
||
3. Navigate to ``docs/_build/html`` directory and open ``index.html`` file in your browser. | ||
file:///Users/Νίκη/MyScalaNativeProject/docs/_build/html/index.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better keep using paths relative to project root directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for looking at this.
In general, I concur that things like scripts/makedocs
should, after the first mention of
from project root directory
, be assumed and documented as relative.
To the best of my knowledge a file:
URL scheme has to be a fully qualified path. I think having a
working example makes it easier for devos who do not use file
URLs regularly to check their work.
As always, I am open to alternate wording.
I'm thinking having a dockerfile to install prequired software for builing docs, wdyt? |
re: dockerfile I think that anything that makes it easier devos, especially new or returning ones, to build the documentation We are probably on the same page that good, lightly commented, code is the best documentation and If you take a run at this, I am willing to exercise anything you come up with. Now that I can build docs on one system, I am set for as long as that hardware remains healthy. |
IIUC Docker can run on Windows. That would expand our capabilities. Not running on Windows is OK, but a nice to have (if cheap). Right now, |
IIUC a dockerfile still has the bootstrap concern that Docker must be installed. So probably |
For future reference, here's how I built the docs on Windows without WSL:
The main differences from the original script being:
|
I propose that this PR be merged on the basis of Just today I went to build the docs for a proposed PR and ran afoul of missing software. |
Couldn't we have a bat file for Windows and a shell script for UNIX like. The added dependency was missing. We also need the script to support clean. |
re: Windows My interest in Windows is so that the Contributor's Guide can say what we do and re: clean Discussions and review such as this help bring out what is useful, so one can design "the good", Deletion is always tricky. The Sphinx make file supports clean already. The . If the dockerfile idea gets implemented, even as an experiment, it will be |
Opened a PR to build the docs using Docker instead of setting up the dev environment locally #3781 does it solve the issue? |
We could use that to build docs in CI. |
I am not super excited about the dockerfile approach. I think having a Windows |
Personally, I would also prefer a If I need to run that on a dockerfile on windows, I might as well run it using WSL. |
I personally don't like complicating the script file just for running sphinx and prefer docker to reproducible.build, but not a strong opinion. |
(TBH, I think even a makedocs script can be deleted and adding an instruction to docs how to build the doc is sufficient like #3778 (comment) |
Well a docs script and bat file could at least call this.
|
I'm marking this as draft and pulling it off the mainline onto a spur. It will be awhile before I am able to study & exercise PR #3781. I think the ideas introduced in this PR of having a README in the I also think that having a section in the Contributor's Guide which describes how I do not have the skill (or interest) to create a Windows .bat file. I also do not want |
I do think that a script should check, or at least announce, what software is required. I have been building the software successfully on my system for years. One day I went I did not have pip on my system and the documented |
Issue #2687 was closed because it looked at the time like a solution would
be a long time coming. With the pending release of Scala Native 0.5.0-?? Real Soon Now,
it would be nice if the new developers it attracts could document their changes
and visually check the results.
This PR modifies
scripts/makedocs
to check that software used to build the documentationis available on the system doing the building. make, python, pip, sphinx-build are all checked.
Installing the now required 'sphinx_last_updated_by_git' manually is not for the faint of heart.