View | Details | Raw Unified | Return to bug 27605 | Differences between
and this patch

Collapse All | Expand All

(-)share/sgml/olink.dsl (+47 lines)
Added Link Here
1
<!-- $FreeBSD: doc/share/sgml/default.dsl,v 1.1 2000/09/28 23:29:48 nbm Exp $ -->
2
3
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
4
<!ENTITY olink.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook OLink Summary V1.1//EN" CDATA DSSSL>
5
]>
6
7
<style-sheet>
8
  <style-specification use="olink">
9
    <style-specification-body>
10
      <![ %output.html; [
11
	  
12
        (define %gentext-nav-use-tables%
13
          ;; Use tables to build the navigation headers and footers?
14
          #t)
15
16
        (define %html-ext%
17
          ;; Default extension for HTML output files
18
          ".html")
19
20
        (define %shade-verbatim%
21
          ;; Should verbatim environments be shaded?
22
          #f)
23
24
        (define %use-id-as-filename%
25
          ;; Use ID attributes as name for component HTML files?
26
          #t)
27
 
28
        (define %root-filename%
29
          ;; Name for the root HTML document
30
          "index")
31
32
        (define html-manifest
33
          ;; Write a manifest?
34
          #f)
35
36
        (define %generate-legalnotice-link%
37
          ;; Should legal notices be a link to a separate file?
38
          ;;
39
          ;; Naturally, this has no effect if you're building one big
40
          ;; HTML file.
41
          #t)
42
	]]>
43
    </style-specification-body>
44
  </style-specification>
45
46
  <external-specification id="olink" document="olink.dsl">
47
</style-sheet>
(-)share/sgml/doc-refs.ent (+2 lines)
Added Link Here
1
<!ENTITY doc.faq SYSTEM "../../books/faq/faq.sgml" CDATA SGML>
2
<!ENTITY doc.handbook SYSTEM "../../books/handbook/book.sgml" CDATA SGML>
(-)share/sgml/freebsd.dsl (+17 lines)
Lines 414-419 Link Here
414
            (string-append "Q" (question-answer-label)))
415
            (string-append "Q" (question-answer-label)))
415
          (else
416
          (else
416
            (string-append "AEN" (number->string (all-element-number nd))))))
417
            (string-append "AEN" (number->string (all-element-number nd))))))
418
419
      <!-- Conclusions: I don't know what I'm doing.
420
           Assumptions: many.
421
      -->
422
      (define (olink-href target modespec)
423
	(let* ((linfo   (normalize (attribute-string (normalize "localinfo"))))
424
	       (sysid   (entity-system-id target))
425
	       (basef   (trim-string sysid '(".sgml")))
426
	       (based   (trim-string basef '("book" "article")))
427
	       (sumdoc  (sgml-parse (string-append basef %olink-outline-ext%)))
428
	       (root    (node-property 'document-element sumdoc))
429
	       (node    (if linfo (element-with-id linfo root) root))
430
	       (idfn    (attribute-string (normalize "id") node))
431
	       (anchor  (if idfn (string-append "#" idfn) ""))
432
	       (href    (string-append based
433
			 (attribute-string (normalize "href") node) anchor)))
434
	  href))
417
      
435
      
418
      (define (xref-biblioentry target)
436
      (define (xref-biblioentry target)
419
        (let* ((abbrev (node-list-first
437
        (let* ((abbrev (node-list-first
(-)share/sgml/catalog (+3 lines)
Lines 20-25 Link Here
20
PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN" 
20
PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN" 
21
       "man-refs.ent"
21
       "man-refs.ent"
22
22
23
PUBLIC "-//FreeBSD//ENTITIES DocBook Document Entities//EN"
24
	"doc-refs.ent"
25
23
PUBLIC "-//FreeBSD//DOCUMENT DocBook Stylesheet//EN"
26
PUBLIC "-//FreeBSD//DOCUMENT DocBook Stylesheet//EN"
24
	"freebsd.dsl"
27
	"freebsd.dsl"
25
28
(-)share/mk/doc.docbook.mk (-1 / +8 lines)
Lines 68-73 Link Here
68
NSGMLS?=	${PREFIX}/bin/nsgmls
68
NSGMLS?=	${PREFIX}/bin/nsgmls
69
.endif
69
.endif
70
70
71
DSLOLINK?=	${DOC_PREFIX}/share/sgml/olink.dsl
71
DSLHTML?=	${DOC_PREFIX}/share/sgml/default.dsl
72
DSLHTML?=	${DOC_PREFIX}/share/sgml/default.dsl
72
DSLPRINT?=	${DOC_PREFIX}/share/sgml/default.dsl
73
DSLPRINT?=	${DOC_PREFIX}/share/sgml/default.dsl
73
FREEBSDCATALOG=	${DOC_PREFIX}/share/sgml/catalog
74
FREEBSDCATALOG=	${DOC_PREFIX}/share/sgml/catalog
Lines 193-199 Link Here
193
194
194
.MAIN: all
195
.MAIN: all
195
196
196
all: ${_docs}
197
# XXX FIXME
198
CLEANFILES+= ${DOC}.olink
199
200
all: ${DOC}.olink ${_docs}
201
202
${DOC}.olink: ${SRCS}
203
	${JADE} -ioutput.html ${JADEOPTS} -d ${DSLOLINK} -t sgml ${MASTERDOC} > ${.TARGET} || (rm -f ${.TARGET} && false)
197
204
198
index.html HTML.manifest: ${SRCS} ${LOCAL_IMAGES_LIB} ${IMAGES_PNG}
205
index.html HTML.manifest: ${SRCS} ${LOCAL_IMAGES_LIB} ${IMAGES_PNG}
199
.if defined(GEN_INDEX)
206
.if defined(GEN_INDEX)

Return to bug 27605