forked from jlengstorf/gatsby-theme-jam-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improves UI and adds documentation
- Loading branch information
Showing
10 changed files
with
111 additions
and
9 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 +1,2 @@ | ||
import 'semantic-ui-css/semantic.min.css'; | ||
import './style.css'; |
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,3 +1,33 @@ | ||
# Welcome | ||
import ColorPlay from './elements/play/ColorPlay'; | ||
|
||
This is the home page. | ||
# Welcome to Plume demo :tada: | ||
|
||
This gatsby theme allows you to easily build a documentation website. | ||
|
||
## Easy to start with :ok_hand: | ||
|
||
On the first run, the theme will create some files to begin with: now the only thing you will have to do will be to begin write some documentation ! | ||
|
||
> **Note :** See [installation instructions](/instructions/installation/) and [usage information](/instructions/usage/) for more details | ||
## Powered by MDX :muscle: | ||
|
||
_Plume_ theme allows you to write your documentation using your own React components, so if you need custom UI elements on your documentation - just do a React component and use it in your document ! | ||
|
||
## Playground included :gift: | ||
|
||
Since you will probably use this theme to make a React documentation anyway, we decided to give you the ability to produce a **live playground editor** for your code ! | ||
|
||
For instance, this is a playground for _Colored Buttons_: you can toggle the editor by clicking on **Show the code**, edit the code and run it ! | ||
|
||
<ColorPlay /> | ||
|
||
## Fully customisable :pencil: | ||
|
||
**Theme shadowing** is a gatsby feature that allows you to replace any file / component of the theme by your own if you want to. | ||
|
||
In making the theme, we purposedly made some components explicitly available for shadowing. The intent is to use this feature for maximal customization power - but making the most commonly customized files easily accessible. | ||
|
||
For more details on how to customize the theme, check the [theme customization](/instructions/usage/) instructions. | ||
|
||
> **Note :** We used this feature to produce this theme around semantic-ui in order to override the _colors_ and the _navigation tree_. |
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,9 @@ | ||
--- | ||
title: Installation | ||
--- | ||
|
||
# Installation instructions | ||
|
||
> **Note :** TODO - must be tested before submission | ||
- `gatsby new my-awesome-documentation https://github.com/mbeaudru/gatsby-theme-plume/tree/master/minimal-demo` |
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,45 @@ | ||
--- | ||
title: Usage | ||
--- | ||
|
||
# How to use | ||
|
||
## Content creation | ||
|
||
### MDX | ||
|
||
- Use frontmatter category & title properties to make your content appear into the tree. | ||
|
||
## Theme customization | ||
|
||
**Theme shadowing** is a gatsby feature that allows you to replace any file / component of the theme by your own if you want to. | ||
|
||
In making the theme, we purposedly made some components explicitly available for shadowing. The intent is to use this feature for maximal customization power - but making the most commonly customized files easily accessible. | ||
|
||
### Files you probably want to shadow | ||
|
||
For minor customization, those files should be sufficient. If the default appeareance already satisfies you, shadowing only those files should do the trick: | ||
|
||
- _colors.js_ | ||
|
||
As the name implies, this file contains the colors used to make the documentation: change those and you can easily add your touch to the site, without heavy changes. | ||
|
||
- _meta.js_ | ||
|
||
At the moment, only contains the _siteName_ key that you will want to override. | ||
|
||
- _tags.js_ | ||
|
||
This file contains all the style used to produce the html tags for your markdown. If you need to customize how the headers, table or anything of this kind are rendered, shadow this file, copy its content and customize ! | ||
|
||
### Files you might shadow | ||
|
||
If you need a higher degree of customization, here are the files you will probably have to shadow: | ||
|
||
- _themeConfig.js_ | ||
|
||
Contains some global css styles and font rendering settings (family, size). | ||
|
||
- every files of _components_ folder | ||
|
||
I extracted most of the _dumb_ components used to produce the UI in this folder so that you can easily find them and override them. |
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,4 @@ | ||
html, | ||
body { | ||
font-size: 16px; | ||
} |
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