Skip to content

Commit

Permalink
migrated website to docusaurus 2 (#47)
Browse files Browse the repository at this point in the history
Summary:
- Live version: https://build.ozgunbal.now.sh/
- I only removed github star counts below `Get Started` button at v1:
![image](https://user-images.githubusercontent.com/16080180/66868638-60d9b200-efa6-11e9-9e58-a8638b93d04e.png)
It can be added if it's necessary but IMHO, doesn't look good with new theme.
- Hey, yangshun and endiliey . You can check it when you're available.
- This PR related to facebookarchive/profilo#46 and facebook/docusaurus#1834
Pull Request resolved: facebookarchive/profilo#47

Differential Revision: D18064160

Pulled By: BurntBrunch

fbshipit-source-id: 70b67a519455f3072246373661966e0bd6f84c36
  • Loading branch information
ozgunbal authored and facebook-github-bot committed Oct 24, 2019
1 parent b2c7d46 commit 5981d3e
Show file tree
Hide file tree
Showing 17 changed files with 9,090 additions and 1,626 deletions.
21 changes: 15 additions & 6 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
.DS_Store

/build
# dependencies
/node_modules
/translated_docs
# production
/build
# generated files
.docusaurus
.cache-loader
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

/i18n/*
!/i18n/en.json
44 changes: 0 additions & 44 deletions website/core/Footer.js

This file was deleted.

55 changes: 55 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

module.exports = {
title: "Profilo",
tagline: "An Android performance library",
url: "https://facebookincubator.github.io",
baseUrl: "/profilo/",
favicon: "img/favicon.png",
organizationName: "facebookincubator", // Usually your GitHub org/user name.
projectName: "profilo", // Usually your repo name.
themeConfig: {
navbar: {
title: "Profilo",
logo: {
alt: "Profilo Logo",
src: "img/profilo_logo_small.png"
},
links: [
{ to: "docs/getting-started", label: "Docs", position: "left" },
{
href: "https://github.com/facebookincubator/profilo",
label: "GitHub",
position: "right"
}
]
},
footer: {
style: "dark",
logo: {
alt: "Facebook Open Source Logo",
src: "https://docusaurus.io/img/oss_logo.png"
},
copyright: `Copyright \u00A9 ${new Date().getFullYear()} Facebook, Inc. Built with Docusaurus.`
}
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "../docs",
sidebarPath: require.resolve("./sidebars.js")
},
theme: {
customCss: require.resolve("./src/css/custom.css")
}
}
]
]
};
22 changes: 0 additions & 22 deletions website/i18n/en.json

This file was deleted.

31 changes: 22 additions & 9 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"scripts": {
"examples": "docusaurus-examples",
"start": "docusaurus-start",
"build": "docusaurus-build",
"publish-gh-pages": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version"
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy"
},
"devDependencies": {
"docusaurus": "^1.0.9"
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.27",
"@docusaurus/preset-classic": "^2.0.0-alpha.27",
"classnames": "^2.2.6",
"react": "^16.10.2",
"react-dom": "^16.10.2"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
50 changes: 0 additions & 50 deletions website/pages/en/help.js

This file was deleted.

Loading

0 comments on commit 5981d3e

Please sign in to comment.