Skip to content

Commit 4972317

Browse files
author
smeyer
committed
fix CSS path in static <pkg>/doc/index.html and improve navigation
git-svn-id: https://svn.r-project.org/R/trunk@88230 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7ab7e76 commit 4972317

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

doc/manual/R-ints.texi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,8 +2558,9 @@ file name of the installed @R{} code, if present).
25582558

25592559
All installed packages, whether they had any @file{.Rd} files or not,
25602560
have @file{help} and @file{html} directories. The latter normally only
2561-
contains the single file @file{00Index.html}, the package index which
2562-
has hyperlinks to the help topics (if any).
2561+
contains the files @file{00Index.html}, the package index which
2562+
has hyperlinks to the help topics (if any), and @file{R.css},
2563+
a copy of the default stylesheet.
25632564

25642565
Directory @file{help} contains files @file{AnIndex}, @file{paths.rds}
25652566
and @file{@var{pkgname}.rd[bx]}. The latter two files are a lazy-load

src/library/tools/R/Vignettes.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File src/library/tools/R/Vignettes.R
22
# Part of the R package, https://www.R-project.org
33
#
4-
# Copyright (C) 1995-2024 The R Core Team
4+
# Copyright (C) 1995-2025 The R Core Team
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -1058,12 +1058,15 @@ function(x, ...)
10581058

10591059
### * .writeVignetteHtmlIndex
10601060

1061-
## NB SamplerCompare has a .Rnw file which produces no R code.
10621061
.writeVignetteHtmlIndex <-
10631062
function(pkg, con, vignetteIndex = NULL)
10641063
{
1065-
## FIXME: in principle we could need to set an encoding here
1066-
html <- c(HTMLheader("Vignettes and other documentation"),
1064+
html <- c(HTMLheader("Vignettes and other documentation",
1065+
up = "../html/00Index.html",
1066+
css = "../html/R.css", # installed since R 2.13.0
1067+
## relative paths to 'top' and 'logo' will only work
1068+
## for the (site-)library in RHOME (or dynamic help)
1069+
Rhome = "../../.."),
10671070
paste0("<h2>Vignettes from package '", pkg,"'</h2>"),
10681071
if(NROW(vignetteIndex) == 0L) ## NROW(NULL) = 0
10691072
"The package contains no vignette meta-information."

0 commit comments

Comments
 (0)