Closed jaguarfi closed 3 years ago
Chapter links should be given as relative paths in the RST (e.g., <../m02_programming_exercises/06_radar>
. The link should then work correctly both in the localhost and in the server.
It seems that those links are actually pointing to the grader.cs.hut.fi server. Is that the expected behaviour?
And as a result, the link takes you to the grader.
Remember that Sphinx compiles RST first and local links are usually relative file paths in the compiled HTML files under the _build
directory. However, when A+ renders the chapter, it modifies links so that chapter links work inside A+ (chapter links must point to A+ of course). If chapter links refer to the MOOC-Grader server, then they are broken, but the problem usually originates from the RST compilation. A+ expects a certain form from those links. There have been many bugs with special cases and nesting directories under the module directory in the course source code has also caused problems.
Interesting behaviour. However, I think that the :ref:
and :doc:
roles work quite good and are suggested in the Sphinx documentation for referencing other parts of the course. So we can try to use those links as well and see how they behave.
And yes, the relative paths may be working properly. However, the current behaviour in the A+ manual is that a couple of links are trying to read information from https://grader.cs.hut.fi. In any case, I think that behaviour is due to those references using relative paths are trying to find a folder that no longer exists (These folder names were changed in #16)
If there is no 'data-aplus-chapter
, then A+ most likely doesn't handle the link correctly. I think that is an area that should be looked at. We have a lot of requirements from the assessment service for the A+ to work, when A+ should be fine without any special things. I think I had some issues to write about this to A+ repo.
Interesting behaviour. However, I think that the
:ref:
and:doc:
roles work quite good and are suggested in the Sphinx documentation for referencing other parts of the course. So we can try to use those links as well and see how they behave.And yes, the relative paths may be working properly. However, the current behaviour in the A+ manual is that a couple of links are trying to read information from https://grader.cs.hut.fi. In any case, I think that behaviour is due to those references using relative paths are trying to find a folder that no longer exists (These folder names were changed in #16)
I would confirm that some links were probably broken simply because the relative path was incorrect after the directories had been renamed. The problem then escalates further and a-plus-rst-tools and a-plus can not fix the link, thus the link ends up pointing to the grader backend.
In some cases, the references make use of full URLs that point to the localhost. These types of references cause hyperlinks to point to the http://www.localhost:8000/def/current/, which is not the desired behaviour.
Some other references implement relative URLs and point to the old name of the course folders, which included a numerical value at the beginning. These references need to be updated.