Opened 7 years ago
Closed 18 months ago
#1200 closed enhancement (wontfix)
Move from static to dynamic Link generation for missing rst files
Reported by: | fgdrf | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | OSGeoLive11.0 |
Component: | OSGeoLive | Keywords: | build sphinx |
Cc: |
Description
Situation:
- Makefile down below doc folder creates symlinks for missing rst files in translation sub-folders
- it scans the root directory and folders in the 2nd order (
en/*/*
)
Problem:
- (possible) changes in the folder structure requires to change Makefile
- new rst files (e.g. metrics.rst) in the first order down below the language are not considered and causes into http 404 Errors if the document is linked from somewhere
Solution:
the Make target link_to_en_docs should be more flexible and should analyse the current tree of sub-dirs.
START_DIR = $(shell pwd) ORIGIN_FILES = $(shell find ./en -name "*.rst" -print) [..] link_to_en_docs: # For quickstart, standards and overview docs which have not been # translated, link to english doc for LANG in $(TRANSLATIONS) ; do \ for DOC in $(ORIGIN_FILES) ; do \ TRANSLATED_DOC=`echo $$DOC | sed -e"s/en/$$LANG/"` ; \ TARGET_EN=`echo $$DOC | sed -e"s#^#../../#"` ; \ if [ ! -f $$TRANSLATED_DOC ] ; then \ rm -f $$TRANSLATED_DOC ; \ ln -s $$TARGET_EN $$TRANSLATED_DOC ; \ fi ; \ done ; \ done
Attachments (1)
Change history (11)
Changed 7 years ago by
Attachment: | Makefile.patch added |
---|
comment:1 Changed 7 years ago by
Cc: | live-demo@… added |
---|
comment:2 Changed 7 years ago by
Cc: | live-demo@… removed |
---|
comment:3 Changed 7 years ago by
Milestone: | OSGeoLive7.0 → OSGeoLive8.0 |
---|
comment:4 Changed 6 years ago by
Milestone: | OSGeoLive8.0 → OSGeoLive8.5 |
---|
comment:5 Changed 6 years ago by
Milestone: | OSGeoLive8.5 → OSGeoLive9.0 |
---|
comment:6 Changed 5 years ago by
Milestone: | OSGeoLive9.0 → OSGeoLive9.5 |
---|
Ticket retargeted after milestone closed
comment:7 Changed 5 years ago by
Milestone: | OSGeoLive9.5 → OSGeoLive10.0 |
---|
Ticket retargeted after milestone closed
comment:8 Changed 4 years ago by
Milestone: | OSGeoLive10.0 → OSGeoLive10.5 |
---|
Ticket retargeted after milestone closed
comment:9 Changed 4 years ago by
Milestone: | OSGeoLive10.5 → OSGeoLive11.0 |
---|
Ticket retargeted after milestone closed
comment:10 Changed 18 months ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See TracTickets for help on using tickets.
(cc to the mailing list is only needed if the ticket's "owner" has changed)