Skip to content

Commit c237ac3

Browse files
eljefedelrodeodeljefeMyles Borins
authored and
Myles Borins
committed
doc: git mv to .md
Original commit: 0800c0a doc: git mv to .md * doc: rename .markdown references in content * doc: rename to .md in tools * doc: rename to .md in CONTRIBUTING.md PR-URL: #4747 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: techjeffharris Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent fb03e57 commit c237ac3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+15
-15
lines changed

CONTRIBUTING.md

+1-1

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
127127
--nodedir="$(shell pwd)"
128128

129129
# Implicitly depends on $(NODE_EXE), see the build-addons rule for rationale.
130-
test/addons/.docbuildstamp: doc/api/addons.markdown
130+
test/addons/.docbuildstamp: doc/api/addons.md
131131
$(RM) -r test/addons/??_*/
132132
$(NODE) tools/doc/addon-verify.js
133133
touch $@
@@ -249,9 +249,9 @@ test-v8-benchmarks:
249249
test-v8-all: test-v8 test-v8-intl test-v8-benchmarks
250250
# runs all v8 tests
251251

252-
apidoc_sources = $(wildcard doc/api/*.markdown)
253-
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \
254-
$(addprefix out/,$(apidoc_sources:.markdown=.json))
252+
apidoc_sources = $(wildcard doc/api/*.md)
253+
apidocs = $(addprefix out/,$(apidoc_sources:.md=.html)) \
254+
$(addprefix out/,$(apidoc_sources:.md=.json))
255255

256256
apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
257257

@@ -268,10 +268,10 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
268268
out/doc/%: doc/%
269269
cp -r $< $@
270270

271-
out/doc/api/%.json: doc/api/%.markdown $(NODE_EXE)
271+
out/doc/api/%.json: doc/api/%.md $(NODE_EXE)
272272
$(NODE) tools/doc/generate.js --format=json $< > $@
273273

274-
out/doc/api/%.html: doc/api/%.markdown $(NODE_EXE)
274+
out/doc/api/%.html: doc/api/%.md $(NODE_EXE)
275275
$(NODE) tools/doc/generate.js --format=html --template=doc/template.html $< > $@
276276

277277
docopen: out/doc/api/all.html

doc/api/documentation.markdown doc/api/documentation.md

+1-1

doc/api/fs.markdown doc/api/fs.md

doc/api/index.markdown

-1
This file was deleted.

doc/api/index.md

+1

doc/api/os.markdown doc/api/os.md

doc/api/v8.markdown doc/api/v8.md

doc/api/vm.markdown doc/api/vm.md

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ static bool ParseDebugOpt(const char* arg) {
32633263

32643264
static void PrintHelp() {
32653265
// XXX: If you add an option here, please also add it to doc/node.1 and
3266-
// doc/api/cli.markdown
3266+
// doc/api/cli.md
32673267
printf("Usage: node [options] [ -e script | script.js ] [arguments] \n"
32683268
" node debug script.js [arguments] \n"
32693269
"\n"

tools/doc/README.md

+1-1

tools/doc/addon-verify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path');
55
const marked = require('marked');
66

77
const rootDir = path.resolve(__dirname, '..', '..');
8-
const doc = path.resolve(rootDir, 'doc', 'api', 'addons.markdown');
8+
const doc = path.resolve(rootDir, 'doc', 'api', 'addons.md');
99
const verifyDir = path.resolve(rootDir, 'test', 'addons');
1010

1111
const contents = fs.readFileSync(doc).toString();

tools/doc/html.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var gtocPath = path.resolve(path.join(
1515
'..',
1616
'doc',
1717
'api',
18-
'_toc.markdown'
18+
'_toc.md'
1919
));
2020
var gtocLoading = null;
2121
var gtocData = null;
@@ -75,7 +75,7 @@ function render(lexed, filename, template, cb) {
7575
// get the section
7676
var section = getSection(lexed);
7777

78-
filename = path.basename(filename, '.markdown');
78+
filename = path.basename(filename, '.md');
7979

8080
parseText(lexed);
8181
lexed = parseLists(lexed);

tools/doc/preprocess.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function processIncludes(inputFile, input, cb) {
3030
if (incCount === 0) cb(null, input);
3131
includes.forEach(function(include) {
3232
var fname = include.replace(/^@include\s+/, '');
33-
if (!fname.match(/\.markdown$/)) fname += '.markdown';
33+
if (!fname.match(/\.md$/)) fname += '.md';
3434

3535
if (includeData.hasOwnProperty(fname)) {
3636
input = input.split(include).join(includeData[fname]);

0 commit comments

Comments
 (0)