[Qgis-community-team] See the doc images at github (or not)

DelazJ delazj at gmail.com
Mon Nov 9 06:49:42 PST 2015


Hi,
Richard, do you still plan on this?

2015-06-09 10:29 GMT+02:00 DelazJ <delazj at gmail.com>:

> Hi,
> I have no skills on this but I think it'll indeed be very helpful to
> display images while writing/updating documentation files in github
> So, if it's easy to do and there is no side effect, +1 from me
>
>
>
> 2015-06-08 11:50 GMT+02:00 Richard Duivenvoorde <richard at duif.net>:
>
>>
>> Hi List,
>>
>> if you look at the rst files in our documentation repo, you will only
>> see text, NOT the images:
>>
>>
>> https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/training_manual/forestry/map_georeferencing.rst
>>
>> It appears that this is because we keep our images at /resource/en/...
>> and copy them into /static during the build, to be able to have
>> localized images....
>>
>> But after seeing the foss4glabs (markdown) sources in their github repo:
>>
>>
>> https://github.com/FOSS4GAcademy/GST101FOSS4GLabs/blob/master/Module%205%20Lab/QGIS%202.8/Module%205%20Lab.md
>>
>> I wondered if it would also be possible that we showed our images in the
>> rst-view of github.
>>
>> It indeed is easy: just copy the english (en) image directory to a
>> directoy 'static' and all images which are referenced like:
>>
>> .. image:: /static/training_manual/forestry/f_1.png
>>
>> are viewable now at github (this is a temporary fork to be able to
>> fiddle a little with this, note only foresty images are copied):
>>
>>
>> https://github.com/rduivenvoorde/QGIS-Documentation/blob/master/source/docs/training_manual/forestry/map_georeferencing.rst
>>
>> as you can see, it is only plain images you see, the images which are
>> 'shortcuts' from conf.py you will not see.
>>
>> But I think it is valuable to see the images immediately in Github, it
>> makes spotting 'old' images much easier for doc writers/editors.
>>
>> The only reason the images currently are not in '/static' dir/tree is
>> that we want the building process to be able to FIRST copy the
>> english(original) images in the /static dir during build and THEN copy
>> (optional) localized images over it during a localized build.
>>
>> But there is not reason to not put the english images already in the
>> '/static' dir (so moving them from /resource/en/... to /static) and
>> change some steps in the build proces
>>
>> So please comment on the following proposal:
>> - we move the resource/en directory to /static
>> - change some steps in the build scripts
>> - we could do the same for the website...
>>
>> Comments?
>>
>> Regards,
>>
>> Richard Duivenvoorde
>> _______________________________________________
>> Qgis-community-team mailing list for organizing community resources such
>> as documentation, translation etc..
>> Qgis-community-team at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-community-team
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-community-team/attachments/20151109/bc154ca0/attachment.html>


More information about the Qgis-community-team mailing list