Opened 11 years ago
Closed 5 years 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)
by , 11 years ago
Attachment: | Makefile.patch added |
---|
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Cc: | removed |
---|
comment:3 by , 11 years ago
Milestone: | OSGeoLive7.0 → OSGeoLive8.0 |
---|
comment:4 by , 10 years ago
Milestone: | OSGeoLive8.0 → OSGeoLive8.5 |
---|
comment:5 by , 10 years ago
Milestone: | OSGeoLive8.5 → OSGeoLive9.0 |
---|
comment:6 by , 9 years ago
Milestone: | OSGeoLive9.0 → OSGeoLive9.5 |
---|
Ticket retargeted after milestone closed
comment:7 by , 8 years ago
Milestone: | OSGeoLive9.5 → OSGeoLive10.0 |
---|
Ticket retargeted after milestone closed
comment:8 by , 8 years ago
Milestone: | OSGeoLive10.0 → OSGeoLive10.5 |
---|
Ticket retargeted after milestone closed
comment:9 by , 7 years ago
Milestone: | OSGeoLive10.5 → OSGeoLive11.0 |
---|
Ticket retargeted after milestone closed
comment:10 by , 5 years ago
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)