Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20e2095c authored by smain@google.com's avatar smain@google.com Committed by Scott Main
Browse files

update NDK doxygen templates to create DevSite-style HTML.

Previously, we had doxygen create .jd files with some syntax that
was parsed by the DocLava build tools when creating the final HTML
files for the website. But now that we're publishing these docs through
Piper, we don't need to run them through DocLava anymore. So with this
change, we now create .html files that then need to be copied to
google3/googledata/devsite/site-android/en/ndk/
where they can be immediately published via devsite once merged.
bug: 29943712

Change-Id: I8af5555f802e8c0122378bd504ad4308ff9aad56
parent 8e3e92b9
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
HEADERS := $(wildcard ../include/android/*.h)

all: html jd
all: html website

html: $(HEADERS) Doxyfile
	mkdir -p html
	doxygen

jd: $(HEADERS) Doxyfile header.jd
	mkdir -p jd
	HTML_HEADER=header.jd HTML_FOOTER=footer.jd HTML_OUTPUT=jd doxygen
	for file in jd/*.html; do mv "$${file}" "$${file/.html/.jd}"; done
	rm -f jd/index.jd
website: $(HEADERS) Doxyfile header.html
	mkdir -p website
	HTML_HEADER=header.html HTML_FOOTER=footer.html HTML_OUTPUT=website doxygen
	rm -f website/index.html

docs/footer.html

0 → 100644
+2 −0
Original line number Diff line number Diff line
</body>
</html>

docs/footer.jd

deleted100644 → 0
+0 −0

Empty file deleted.

docs/header.html

0 → 100644
+10 −0
Original line number Diff line number Diff line
<html devsite>
<head>
  <meta name="top_category" value="ndk" />
  <meta name="subcategory" value="reference" />
  <meta name="book_path" value="/ndk/reference/_book.yaml" />
  <title>$title</title>
  <link rel="stylesheet" type="text/css" href="doxygen-dac.css">
</head>
<body>
<div id="top"><!-- we must have this tag, it's closed by doxygen. ¯\_(ツ)_/¯ -->

docs/header.jd

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
page.title=$title
page.customHeadTag=<link rel="stylesheet" type="text/css" href="doxygen-dac.css">
@jd:body