feat(v2): bootstrap bootstrap (heh) theme, preset, template (#2557)

* feat(v2): Add bootstrap theme structure

* chore(v2): run prettier

* chore(v2): remove unused dependencies

* feat(v2): add bootstrap preset

* feat(v2): add bootstrap template

* remove unnecessary stuff

* --

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
Fanny 2020-04-09 01:58:01 -03:00 committed by GitHub
parent 8d384b0d10
commit 434da1d7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 729 additions and 1 deletions

View file

@ -0,0 +1,20 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
module.exports = function () {
return {
name: 'docusaurus-theme-bootstrap',
getThemePath() {
return path.resolve(__dirname, './theme');
},
getClientModules() {
return ['bootstrap/dist/css/bootstrap.min.css'];
},
};
};

View file

@ -0,0 +1,30 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '@theme/Layout';
function NotFound() {
return (
<Layout title="Page Not Found">
<div className="container my-xl-3">
<div className="row">
<div className="col col-6 offset-3">
<h1>Page Not Found</h1>
<p>We could not find what you were looking for.</p>
<p>
Please contact the owner of the site that linked you to the
original URL and let them know their link is broken.
</p>
</div>
</div>
</div>
</Layout>
);
}
export default NotFound;