Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8efb0bc

Browse files
committed
Add a rule to optionally build docs with the stylesheet from the website
For those of us who prefer the formatting of the docs using thewebsite stylesheets. Use "make STYLE=website draft" (for example) to use.The stylesheet itself is referenced directly to the website, so thereis currently no copy of it stored in the source repository. Thus, docsbuilt with it will only look correct if the browser can access the websitewhen viewing them.
1 parent2502f45 commit8efb0bc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎doc/src/sgml/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ man-stamp: stylesheet-man.xsl postgres.xml
8989
.PHONY: draft
9090

9191
JADE.html.call =$(JADE)$(JADEFLAGS)$(SPFLAGS)$(SGMLINCLUDE)$(CATALOG) -d stylesheet.dsl -t sgml -i output-html
92+
ifeq ($(STYLE),website)
93+
JADE.html.call += -V website-stylesheet
94+
endif
9295

9396
# The draft target creates HTML output in draft mode, without index (for faster build).
9497
draft: postgres.sgml$(ALMOSTALLSGML) stylesheet.dsl

‎doc/src/sgml/stylesheet.dsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<!-- (applicable to all output formats) -->
3030

3131
(define draft-mode #f)
32+
(define website-stylesheet #f)
3233

3334
(define pgsql-docs-list"pgsql-docs@postgresql.org")
3435

@@ -190,7 +191,7 @@
190191
(define %root-filename%"index")
191192
(define %link-mailto-url% (string-append"mailto:" pgsql-docs-list))
192193
(define %use-id-as-filename% #t)
193-
(define %stylesheet%"stylesheet.css")
194+
(define %stylesheet%(if website-stylesheet"http://www.postgresql.org/media/css/docs.css""stylesheet.css"))
194195
(define %graphic-default-extension%"gif")
195196
(define %gentext-nav-use-ff% #t)
196197
(define %body-attr% '())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp