Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
560 additions
and
997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
*~ | ||
.DS_Store | ||
npm-debug.log | ||
test_bundle.js | ||
test-built/* | ||
.idea | ||
transpiled/* | ||
docs/*.html | ||
docs/assets/bundle.js | ||
cjs/* | ||
|
||
node_modules | ||
amd/* | ||
ie8/bundle.js | ||
lib/* | ||
amd/ | ||
!tools/amd/ | ||
lib/ | ||
!tools/lib/ | ||
dist/ | ||
!tools/dist/ | ||
docs-built/ | ||
ie8/bundle.js | ||
tmp-bower-repo/ | ||
tmp-docs-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
node_modules/ | ||
docs/ | ||
docs-built/ | ||
test-built/ | ||
test/ | ||
tools/ | ||
.gitignore | ||
.travis.yml | ||
Gruntfile.js | ||
karma.ci.js | ||
karma.dev.js | ||
test_bundle.js | ||
karma.conf.js | ||
tmp-docs-repo/ | ||
tmp-bower-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# React Bootstrap Documentation Website | ||
|
||
This website is single page app built on | ||
[React](http://facebook.github.io/react/), with styles and structure taken from | ||
the [Bootstrap](http://getbootstrap.com/) docs website. The app is statically | ||
generated to HTML via node and then hosted it by pushing HTML to [GitHub | ||
Pages](http://pages.github.com/). | ||
|
||
Source can be found in the | ||
[react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
/* eslint no-var: 0 */ | ||
'use strict'; | ||
import path from 'path'; | ||
import Root from './src/Root'; | ||
import fsp from 'fs-promise'; | ||
import { exec, spawn } from 'child-process-promise'; | ||
|
||
require('babel/register'); | ||
const repoRoot = path.resolve(__dirname, '../'); | ||
const docsBuilt = path.join(repoRoot, 'docs-built'); | ||
|
||
var fs = require('fs'); | ||
var path = require('path'); | ||
var Root = require('./src/Root'); | ||
const license = path.join(repoRoot, 'LICENSE'); | ||
const readmeSrc = path.join(__dirname, 'README.docs.md'); | ||
const readmeDest = path.join(docsBuilt, 'README.md'); | ||
|
||
Root.getPages() | ||
.forEach(function (fileName) { | ||
var RootHTML = Root.renderToString({initialPath: fileName}); | ||
export default function BuildDocs() { | ||
console.log('Building: '.cyan + 'docs'.green); | ||
|
||
fs.writeFileSync(path.join(__dirname, '../docs-built', fileName), RootHTML); | ||
}); | ||
return exec(`rm -rf ${docsBuilt}`) | ||
.then(() => fsp.mkdir(docsBuilt)) | ||
.then(() => { | ||
let writes = Root | ||
.getPages() | ||
.map(fileName => { | ||
let RootHTML = Root.renderToString({initialPath: fileName}); | ||
return fsp.writeFile(path.join(docsBuilt, fileName), RootHTML); | ||
}); | ||
|
||
return Promise.all(writes.concat([ | ||
exec(`webpack --config webpack.docs.js -p --bail`), | ||
exec(`cp ${license} ${docsBuilt}`), | ||
exec(`cp ${readmeSrc} ${readmeDest}`) | ||
])); | ||
}) | ||
.then(() => console.log('Built: '.cyan + 'docs'.green)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.