-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #515 from no-chris/add-documentation-site
Add documentation site
- Loading branch information
Showing
64 changed files
with
9,156 additions
and
24 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 |
---|---|---|
|
@@ -2,4 +2,5 @@ coverage | |
node_modules | ||
build | ||
SLOC | ||
package.json | ||
package.json | ||
.docusaurus |
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
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...o/build/css/main.07295dfda419c9b7ab93.css → ...o/build/css/main.8021d68be529720cfa48.css
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ild/css/main.07295dfda419c9b7ab93.css.map → ...ild/css/main.8021d68be529720cfa48.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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
2 changes: 0 additions & 2 deletions
2
packages/chord-charts-studio/build/main.07295dfda419c9b7ab93.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/chord-charts-studio/build/main.07295dfda419c9b7ab93.js.map
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
packages/chord-charts-studio/build/main.8021d68be529720cfa48.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/chord-charts-studio/build/main.8021d68be529720cfa48.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...dio/build/vendors.07295dfda419c9b7ab93.js → ...dio/build/vendors.8021d68be529720cfa48.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...build/vendors.07295dfda419c9b7ab93.js.map → ...build/vendors.8021d68be529720cfa48.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,12 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
extends: ['eslint:recommended', 'plugin:react/recommended'], | ||
rules: { | ||
'react/prop-types': 0, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}; |
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,20 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# 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* |
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,33 @@ | ||
# Website | ||
|
||
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. | ||
|
||
### Installation | ||
|
||
``` | ||
$ yarn | ||
``` | ||
|
||
### Local Development | ||
|
||
``` | ||
$ yarn start | ||
``` | ||
|
||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | ||
|
||
### Build | ||
|
||
``` | ||
$ yarn build | ||
``` | ||
|
||
This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
|
||
### Deployment | ||
|
||
``` | ||
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy | ||
``` | ||
|
||
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. |
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 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,28 @@ | ||
import { CM, CCS, CS } from '../src/components/shortcuts'; | ||
|
||
# FAQ | ||
|
||
## Where are my songs stored? | ||
|
||
<CCS/> use the browser's memory (local storage) to store the songs. | ||
This has a huge advantage: since I don't need to pay for a server to store the user content, you can enjoy <CCS/> for free. | ||
Of course, there are some drawbacks as well: if you switch computers, devices, or browsers, you will start with a blank library every time. | ||
|
||
## Can I backup the songs library? | ||
|
||
Not easily for now, but you can export each individual song. | ||
Tech-savvy users can also directly access the local storage content and back it up, for example, in [Chrome](https://developer.chrome.com/docs/devtools/storage/localstorage/). | ||
|
||
## Can I see the sample content again? | ||
|
||
When you start <CCS/> for the first time, it comes with two samples of "songs." | ||
If you deleted them and would like to see them again, you can either: | ||
|
||
- delete all the songs in the library and refresh the browser | ||
- open <CCS/> in an incognito session or in another browser | ||
|
||
## The layout is broken when printing | ||
|
||
If the browser's printing preview looks different than <CCS/>'s preview, make sure: | ||
- to set the document size as `A4` | ||
- to disable the printer's margins, since they are directly handled by <CCS/> |
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,53 @@ | ||
import { CM, CCS, CS } from '../src/components/shortcuts'; | ||
import TabbedChordMark from '../src/components/TabbedChordMark'; | ||
|
||
# Importing songs | ||
|
||
## The import dialog | ||
|
||
Hitting the **Import** button will bring the following dialog: | ||
|
||
![Chord Charts Studio](./assets/ccs2.png) | ||
|
||
Importing songs can be done: | ||
|
||
- by copy/pasting content in the input box on the left side (typically a chord chart that you will find on another website) | ||
- by selecting a file on your hard drive, for example, a ChordPro file | ||
|
||
The right side of the import dialog will show a preview of the input converted in the <CM/> format. | ||
If the conversion doesn't look right, you can adjust the input format: | ||
|
||
- **Basic**: should work for most chord charts where the chord symbols are positioned over the lyrics, which is the standard way of rendering chord charts in most websites | ||
- **ChordPro**: use this setting if the input source is in the [ChordPro](https://www.chordpro.org/) format, eg, with chords encoded between square brackets directly in the lyrics | ||
- **Ultimate Guitar**: very similar to **Basic**, but also recognize some of the specific syntax used by chord charts on the [Ultimate Guitar](https://www.ultimate-guitar.com/) website. | ||
|
||
Of course, recognizing if the conversion "looks right" or not requires a bit of practice with the <CM/> format. | ||
|
||
Once you are happy with the settings, hit the **IMPORT** button in the top right corner. | ||
|
||
## Encoding rhythm information | ||
|
||
Since <CM/> is the only chord chart format that encodes rhythm information, you will need to add this information manually to each chord symbol after importing a song. | ||
There are three possibilities, depending on the duration of a chord: | ||
|
||
### Exactly one bar | ||
|
||
Lucky you! There is nothing specific to do here, since by default, <CM/> will interpret a chord symbol as lasting a full bar. | ||
|
||
<TabbedChordMark src={'A E\n_By default, all chords _lasts a full bar'} /> | ||
|
||
### Less than one bar | ||
|
||
Use the chord duration marker `.` to specify how many beats the chord should be played. | ||
You might also need to specify the song time signature if different than 4/4. | ||
|
||
<TabbedChordMark src={'5/4\nA... D. E.\n_Three chords in a _single 5/4 _bar'} /> | ||
|
||
### More than one bar | ||
|
||
A bit of extra work is needed here. | ||
You need to repeat the chord as many times as it should be played for the duration of a full bar. | ||
Use the bar repeat symbol `%` to make that process quicker. | ||
For a better result, chord position markers should also be repeated in the lyric line. | ||
|
||
<TabbedChordMark src={'A %%\n_The same chord _over multiple bars _need to be repeated'} /> |
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,98 @@ | ||
import { CM, CCS, CS } from '../src/components/shortcuts'; | ||
|
||
# User interface | ||
|
||
![Chord Charts Studio](./assets/ccs1.png) | ||
|
||
The primary user interface is made of four parts: | ||
|
||
- the "song manager" on the left | ||
- the "Mode switcher" at the top | ||
- the main area | ||
- the options panel on the right | ||
|
||
## The Song manager | ||
|
||
The song manager offers the following functionality: | ||
|
||
- **Import**: creates a new song from an external source/format, typically from a file or another website, and convert it to <CM />. See the [import documentation](/docs/import). | ||
- **New**: creates a new song from scratch in the <CM/> format | ||
- **Rename**: allows renaming the currently selected song. You can also double-click on the song title directly. | ||
- **Delete**: allows deleting the currently selected song (needs confirmation) | ||
- **Print**: switches to the **Print/PDF Preview** mode and display the browser printing dialog | ||
- **Export**: switches to the **Export Preview** mode and display the browser file saving dialog | ||
|
||
To switch from one song to another, click on a title in the song list below the actions buttons. | ||
|
||
## Main area & the mode switcher | ||
|
||
When a song is selected, it will be displayed in the main area and adapt to the selected mode: | ||
|
||
- **Edit**: this is where the actual writing of the chord chart takes place. | ||
You write on the left pane, and the right pane will show you in real-time the final output. | ||
Of course, the chord chart needs to follow [the ChordMark syntax](https://chordmark.netlify.app). | ||
- **Screen view**: this mode is helpful if you wish to play the song by directly looking at your computer screen. | ||
You can format the chord chart such as it nicely fits the screen real estate, and you don't need to scroll when playing (for example, using multiple columns). | ||
To further increase the screen real estate, you can fold both the right and left sidebars. | ||
- **Print/PDF Preview**: this mode shows you a preview of how the song will look when printed on an A4 paper or exported as a PDF. | ||
Here again, you can tweak the settings such as the song fits on a single sheet of paper (or as many as you want): number of columns, font size, etc. | ||
- **Export Preview**: finally, this mode allows you to prepare the chord chart for being exported as a text file. A ChordPro export is available. | ||
|
||
It is important to stress that all formatting options are not available in all modes: | ||
for example, text documents do not support columns, so the columns setting is not available in the **Export Preview** mode. | ||
|
||
Equally important, when an option is available in more than one mode, then it is saved for the current mode only, independently of the others. | ||
In other words, you can have a setting of 4 columns for the screen view and two columns for the printed one, for example. | ||
The "Key" settings, however, are set once for all the modes. | ||
|
||
## The options panel | ||
|
||
The song display can be customized with the following options: | ||
|
||
### Editor preferences | ||
|
||
These options apply to all Chord Charts. | ||
|
||
- **Theme**: Theme for ChordMark rendering, both in Editor preview and in the screen view | ||
- **Export format**: | ||
- **ChordMark**: format the song using the <CM/> rendering | ||
- **ChordMark (Source)**: use this setting to export the song in the source <CM/> format | ||
- **ChordPro**: convert the song in the ChordPro format (beta) | ||
|
||
|
||
### Key | ||
|
||
These options apply to all rendering modes of a single Chord Chart. | ||
|
||
- **Transpose**: use this slider to transpose up or down the chords | ||
- **Harmonize accidentals**: enable this option if you want all chords symbols to be rendered with the same accidentals | ||
- **Preferred accidentals**: only available if the previous option is turned on | ||
- **Auto**: the accidental with the most occurrences in the song will be used | ||
- **#**: render all accidentals with sharps | ||
- **b**: render all accidentals with flats | ||
|
||
### Preferences | ||
|
||
These options apply only to a given rendering mode of a Chord Chart. | ||
|
||
- **Chart Type**: | ||
- **Complete**: renders everything | ||
- **Lyrics only**: hide the chords | ||
- **Chords only**: hide the lyrics | ||
- **Chords + First lyric line**: display only the first lyric line of each section. Useful if you only need a quick reminder of the lyrics. | ||
- **Align chords with lyrics**: use the chord position markers in the lyric line to position the chords symbols above the lyrics | ||
- **Align bars**: align the chord symbols and the bar separators of all chord lines. This setting has no effect on chords symbols that are aligned with lyrics | ||
- **Auto repeat chords**: automatically repeat chords for identical sections (verse, chorus...). | ||
- **Expand copied sections**: when you repeat a section by using its label (`#c`, for ex), | ||
use this setting to decide if only the section title should be printed or if the full section should be copied | ||
|
||
### Layout | ||
|
||
These options are only available in Screen view and Print Preview modes. | ||
|
||
- **Font size**: adjust the size of the text | ||
- **Columns**: display the song over multiple columns | ||
- **Column break on section**: avoid splitting a section in two different columns when printing a song | ||
- **Margins**: adjust the document margins when printing a song | ||
|
||
|
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 @@ | ||
# Licenses | ||
|
||
## Homepage icons | ||
|
||
[Creative commons Attribution CC BY](https://creativecommons.org/licenses/by/3.0/us/legalcode) | ||
|
||
- Lyrics by Konvisanu Suvannasri from [NounProject.com](https://thenounproject.com/) | ||
- Lightning by NeMaria from [NounProject.com](https://thenounproject.com/) | ||
- Swap by Adrien Coquet from [NounProject.com](https://thenounproject.com/) |
Oops, something went wrong.