-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
26 lines (23 loc) · 954 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright 2020 Joyent, Inc.
#
#
# Repo-specific targets
#
.PHONY: all
all: docs
./node_modules/.bin/doctoc:
npm install
# Make a table of contents in Markdown docs that are setup to use it. This
# changes those files in-place, so one should do this before commit.
.PHONY: docs
docs: | ./node_modules/.bin/doctoc
./node_modules/.bin/doctoc --notitle --maxlevel 3 docs/developer-guide/README.md
./node_modules/.bin/doctoc --notitle --maxlevel 3 docs/operator-guide/architecture.md
./node_modules/.bin/doctoc --notitle --maxlevel 3 docs/operator-guide/deployment.md
./node_modules/.bin/doctoc --notitle --maxlevel 3 docs/operator-guide/maintenance.md
./node_modules/.bin/doctoc --notitle --maxlevel 3 docs/operator-guide/mantav2-migration.md