Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request sourcey#26 from FormidableLabs/task-reconfigContent
Browse files Browse the repository at this point in the history
[WIP] Reconfigure for Content Components
  • Loading branch information
ebrillhart committed Oct 19, 2016
2 parents 2aa7cab + f76c93d commit 4d9afe1
Show file tree
Hide file tree
Showing 44 changed files with 4,333 additions and 3,456 deletions.
13 changes: 5 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand All @@ -11,19 +11,16 @@
<meta property="og:url" content="http://www.formidable.com/open-source/spectacle/" />
<meta property="og:image" content="./static/og-image.png" />
<meta property="og:description" content="A React.js based library for creating sleek presentations using JSX syntax (with the ability to live demo your code!)" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./static/favicon.ico" type="image/x-icon">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,600" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lora:400,400italic,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:800,700,400" rel="stylesheet" type="text/css">
<!-- Syntax highlighting theme -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/themes/prism-solarizedlight.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Karla:400,400italic,700" rel="stylesheet" type="text/css">
<link href="https://formidable.com/open-source/fonts.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="content">
<p style="text-align: center;">Oops! Something is broken or JavaScript is not enabled.</p>
</div>
<script async defer type="text/javascript" src="main.js"></script>
<script async defer type="text/javascript" src="/main.js"></script>
</body>
</html>
20 changes: 15 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Documentation site for Spectacle",
"main": "webpack.config.dev.js",
"scripts": {
"dev": "webpack-dev-server --port 3000 --config node_modules/builder-docs-archetype/config/webpack/webpack.config.dev.js --history-api-fallback",
"start": "builder run dev",
"test": "builder run lint",
"update-project": "npm update spectacle"
Expand All @@ -12,25 +13,34 @@
"type": "git",
"url": "git+https://github.com/FormidableLabs/spectacle-docs.git"
},
"author": "david.davidson@formidable.com, paula.lavalle@formidable.com",
"author": "david.davidson@formidable.com, paula.lavalle@formidable.com, emma.brillhart@formidable.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/FormidableLabs/spectacle-docs/issues"
},
"homepage": "https://github.com/FormidableLabs/spectacle-docs#readme",
"devDependencies": {
"builder-docs-archetype-dev": "^2.0.0"
"builder-docs-archetype-dev": "^4.1.1"
},
"dependencies": {
"anchorate": "^1.1.0",
"builder": "^2.9.1",
"builder-docs-archetype": "^2.0.0",
"formidable-landers": "^3.0.0",
"builder-docs-archetype": "^4.1.1",
"formidable-landers": "^5.1.1",
"history": "^1.17.0",
"lodash": "^4.16.4",
"markdown-it": "^8.0.0",
"markdown-it-toc-and-anchor": "^4.1.1",
"marked": "^0.3.5",
"prismjs": "^1.4.1",
"normalize.css": "^4.2.0",
"prismjs": "^1.5.1",
"radium": "^0.17.1",
"react": "^15.2.0",
"react-document-meta": "^2.0.3",
"react-dom": "^15.2.0",
"react-ga": "^2.1.1",
"react-router": "^2.7.0",
"react-router-scroll": "^0.2.0",
"spectacle": "FormidableLabs/spectacle"
}
}
54 changes: 54 additions & 0 deletions src/components/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from "react";
import { Link } from "react-router";
import { Header, Footer } from "formidable-landers";

// Variables and Stylesheet
import LOGO from "../../static/logo.svg";
import "../styles/styles.css";

class App extends React.Component {
render() {
const SpectacleLogoLink = (
<h1 className="u-noMargin">
<a
href="/"
className="Logo"
dangerouslySetInnerHTML={{__html: LOGO}}
/>
</h1>
);

return (
<div className="Site">
<Header
logoProject={SpectacleLogoLink}
padding="20px 6vw 30px"
theme="dark"
>
<div className="default">
<Link to="/about" activeClassName="is-active">About</Link>
<Link to="/docs" activeClassName="is-active">Docs</Link>
<a href="https://www.github.com/FormidableLabs/spectacle/issues">Issues</a>
<a href="https://github.com/FormidableLabs/spectacle">GitHub</a>
</div>
</Header>

{ this.props.children }

<Footer
padding="5rem 6vw 6rem"
/>
</div>
);
}
}

App.propTypes = {
children: React.PropTypes.node
};

App.defaultProps = {
children: null
};

export default App;
116 changes: 0 additions & 116 deletions src/components/app.jsx

This file was deleted.

33 changes: 33 additions & 0 deletions src/components/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// Import markdown files from /docs folder in the repo
//

import GettingStarted from "spectacle/docs/getting-started.md";
import BasicConcepts from "spectacle/docs/basic-concepts.md";
import Api from "spectacle/docs/tag-api.md";
import Props from "spectacle/docs/props.md";
import Extensions from "spectacle/docs/extensions.md";

export const config = [
{
name: "Getting Started",
slug: "getting-started",
docs: GettingStarted
}, {
name: "Basic Concepts",
slug: "basic-concepts",
docs: BasicConcepts
}, {
name: "API",
slug: "tag-api",
docs: Api
}, {
name: "Props",
slug: "props",
docs: Props
}, {
name: "Extensions",
slug: "extensions",
docs: Extensions
}
];
103 changes: 0 additions & 103 deletions src/components/docs.jsx

This file was deleted.

0 comments on commit 4d9afe1

Please sign in to comment.