-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 testing instructions #6395
Fix testing instructions #6395
Conversation
Thanks for catching this @michalpipa. What do you think about also adding the command that you need to execute to install them? |
Hi, I found this error also and was about to send a fix but I saw that there's already this PR. I have ideas on how to rewrite it: basically, first install "pip" then run "pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git" I would also add a warning about "pip install": installed binaries may not be in the path if the command is not run as root or via sudo. In this case "make html" doesn't work (it happened to me and as I'm not a Python expert it took me some time to understand where the files were installed) @michalpipa , do you want me to finish? |
I think that we should just link to external documentation. There is installation instruction on pip and sphinx-php documentation and I think we don't want to duplicate it (it depends on operating system).
Have you read the sphinx-php doc? It says:
|
The external doc about sphinx will tell you how to install the latest version, and the build currently fails when using 1.4.x |
Good point. I didn't notice this (I have installed it just a few weeks ago). So maybe we should link to pip documentation and give specific command for sphinx and sphinx-php? |
My another suggestion is to move this section from "Documentation Format" chapter to "Contributing to the Documentation" chapter and rename it to "Building from source". Testing is not the only reason to build the documentation and now it is quite hard to find this section. |
I agree, that's where I was thinking I would find it.
For me the point is to install pip using external documentation (according to your OS) and then use the command that is already used in .travis.yml |
By the way, here was my version:
|
IMO, putting |
I think we can skip this notice and just say to use "sudo". |
this is not a cross-platform advice. It depends on your system too |
I lost time because of it so I think it's useful to say, but yes it should be cross-platform so we should not force people to use sudo. |
By the way, this "caution" should not block the PR.
I can propose my caution comment on a later PR for discussion. |
@pasdeloup Yeah, can you make that change? We can discuss everything else separately then. |
It's not my PR, that's why I didn't do the change. The caution I want to add is only relevant after this PR is merged. |
I've updated my pull request. I've added description how to install pip, Sphinx and Sphinx extension. Also moved build instructions from "Documentation Format" to "Contributing to the Documentation". |
@@ -274,6 +274,28 @@ page on GitHub and click on ``Details``. | |||
Only Pull Requests to maintained branches are automatically built by | |||
Platform.sh. Check the `roadmap`_ for maintained branches. | |||
|
|||
Building from source |
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.
Source
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.
Fixed
Hi, I just reinstalled it on Linux Mint and discovered pip 8.x is needed for the ~=1.3 versionning syntax. You should add something like |
@pasdeloup Which version do you have? It works for me on version Again: do we care about pip versions older than |
@michalpipa using |
the important thing is not which version documents it, but which version implements it in the code |
@michalpipa saying that it works in 1.5.6 is weird. Reading the pip source code, it looks like this feature was added in pip 6.0 (which is the version following 1.5.6, totally logically). |
@michalpipa thanks for proposing this improvement and thanks @pasdeloup and @stof for the review and discussion. Sadly this PR cannot be merged because we recently revamped the Symfony Docs. That's why I've recreated this work (and added some minor changes) in #6835. Thanks! |
Thank you @michalpipa for starting this. |
…iluz) This PR was merged into the 2.7 branch. Discussion ---------- Updated the instructions to build docs locally This finishes #6395. Commits ------- a2428a4 Minor improvements 914dd30 Fixed the "make" command 77c88bf Fixed again the tricky list syntax 767b49b Fixed the syntax of the list c71ad4b Minor fixes a7b4d32 Reword the third step cebc382 Added the missing link references 348b11c Updated the instructions to build docs locally
Installation method for Sphinx Extensions for PHP and Symfony was changed from git submodules to pip (62a99b3), but build documentation was never changed. This small fix updates testing instructions.