summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-21 13:05:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-21 13:08:06 +0900
commitf92f08ff23dbda568ef66fea4fbc2216249f60e1 (patch)
treec88dd0f27c5cbe7840e50ddcdb0e47b7d76e4b3e
parent1abd068445aa74ed1d9483e319b5cf1d87b267f0 (diff)
[DOC] Set the documentation title and main page
Copied from https://github.com/ruby/docs.ruby-lang.org/ to be as same as docs.ruby-lang.org.
-rw-r--r--.rdoc_options2
-rw-r--r--common.mk4
2 files changed, 5 insertions, 1 deletions
diff --git a/.rdoc_options b/.rdoc_options
index 88db0774e7..760507c7a2 100644
--- a/.rdoc_options
+++ b/.rdoc_options
@@ -1,2 +1,4 @@
---
page_dir: doc
+main_page: README.md
+title: Documentation for Ruby development version
diff --git a/common.mk b/common.mk
index 5af9d92571..99e11c215d 100644
--- a/common.mk
+++ b/common.mk
@@ -70,7 +70,9 @@ RDOCOUT = $(EXTOUT)/rdoc
HTMLOUT = $(EXTOUT)/html
CAPIOUT = doc/capi
INSTALL_DOC_OPTS = --rdoc-output="$(RDOCOUT)" --html-output="$(HTMLOUT)"
-RDOC_GEN_OPTS = --page-dir "$(srcdir)/doc" --no-force-update
+RDOC_GEN_OPTS = --page-dir "$(srcdir)/doc" --no-force-update \
+ --title "Documentation for Ruby $(RUBY_API_VERSION)" \
+ --main README.md
INITOBJS = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
NORMALMAINOBJ = main.$(OBJEXT)