Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Add org to website config
Browse files Browse the repository at this point in the history
Summary:
This adds the config info that's needed to publish a website. I tested by running it locally and making sure the build ran.
Closes #8

Reviewed By: BurntBrunch

Differential Revision: D7290414

Pulled By: caabernathy

fbshipit-source-id: a568ebad0401ba57462952ff0c8b07d69d6a9635
  • Loading branch information
Christine Abernathy authored and facebook-github-bot committed Mar 15, 2018
1 parent f5bdadf commit d5939ba
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 2
jobs:
deploy-website:
docker:
- image: circleci/node:7.10

working_directory: ~/profilo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- dependencies-{{ .Branch }}-{{ checksum "website/yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- dependencies-{{ .Branch }}-

- run:
name: Install Docusaurus
command: |
cd website
yarn --non-interactive --cache-folder ~/.cache/yarn
- save_cache:
paths:
- website/node_modules
- ~/.cache/yarn
key: dependencies-{{ .Branch }}-{{ checksum "website/yarn.lock" }}

- run:
name: Configure GitHub Bot
command: |
git config --global user.email "docusaurus-bot@users.noreply.github.com"
git config --global user.name "Website Deployment Script"
echo "machine github.com login docusaurus-bot password $GITHUB_TOKEN" > ~/.netrc
- deploy:
name: Deploy Website
command: |
echo "Deploying website..."
cd website && GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages
1 change: 1 addition & 0 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const siteConfig = {
url: 'https://facebookincubator.github.io' /* your website url */,
baseUrl: '/profilo/' /* base url for your project */,
projectName: 'profilo',
organizationName: "facebookincubator",
headerLinks: [
{doc: 'getting-started', label: 'Docs'},
{
Expand Down

1 comment on commit d5939ba

@EzzatFathy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API.css

Please sign in to comment.