File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ htmldocs:
52
52
cd docs && node ../bin/npm-cli.js install && \
53
53
node ../bin/npm-cli.js run build:static echo>&2 && \
54
54
rm -rf node_modules .cache public/* js public/* json public/404* public/page-data public/manifest*
55
- find docs/public -name ' *.html' -exec \
56
- node scripts/docs-build.js {} \;
57
55
58
56
docs : mandocs htmldocs
59
57
@@ -92,7 +90,7 @@ man/man1/npx.1: node_modules/libnpx/libnpx.1
92
90
man/man5/npm-json.5 : man/man5/package.json.5
93
91
cp $< $@
94
92
95
- man/man5/npm-global.5 : man/man5/foslders .5
93
+ man/man5/npm-global.5 : man/man5/folders .5
96
94
cp $< $@
97
95
98
96
man/man5/% .5 : docs/content/configuring-npm/% .md scripts/docs-build.js package.json $(build-doc-tools )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import styled, { ThemeProvider } from 'styled-components'
5
5
import { theme } from 'src/theme'
6
6
import FoundTypo from 'src/components/FoundTypo'
7
7
import Scripts from 'src/components/Scripts'
8
+ const version = require ( '../../../package.json' ) . version
8
9
9
10
const Content = styled . div `
10
11
max-width: 760px;
@@ -20,7 +21,9 @@ const Page = ({data}) => {
20
21
< ThemeProvider theme = { theme } >
21
22
< Layout showSidebar >
22
23
< Content className = 'documentation' >
23
- < div dangerouslySetInnerHTML = { { __html : html } } />
24
+ < div dangerouslySetInnerHTML = { {
25
+ __html : html . replace ( / @ V E R S I O N @ / g, version )
26
+ } } />
24
27
< FoundTypo />
25
28
< Scripts />
26
29
</ Content >
You can’t perform that action at this time.
0 commit comments