1 | # bloom-cli
|
2 |
|
3 | A command line utility to create a multipage static website from a [Ulysses](http://ulyssesapp.com) HTML export
|
4 |
|
5 | ![](http://i.imgur.com/fIQN10x.png)
|
6 |
|
7 | ### Usage
|
8 |
|
9 | 1. Open a terminal and type `npm install bloom-cli -g` to install `bloom-cli` globally, letting you `bloom` from wherever you are.
|
10 | 2. When you're exporting HTML from Ulysses, choose "Full Page" format. Save it somewhere you can navigate to in the terminal / command prompt (I usually make a folder and save it in there, then open a terminal at that folder).
|
11 | 3. Navigate (via terminal / prompt) to the folder where you saved your HTML file - usually it's named `index.html`
|
12 | 4. Type `bloom` in your terminal.
|
13 | 5. Answer the questions (like "What is the name of your project", etc.) and an index page will pop up in a browser with your linked files all ready for you to click.
|
14 | 6. If you chose to upload via built-in FTP, navigate to the new location and check out your new site. If you want to upload yourself, throw the contents of the `index-bloomed` folder into your favorite FTP program. Either way, `bloom-cli` will pop open a local index page for you to peruse.
|
15 |
|
16 | ### Styles
|
17 |
|
18 | Take advantage of Ulysses' styles marketplace. Any of the downloaded HTML styles from [http://styles.ulyssesapp.com/](http://styles.ulyssesapp.com/tagged/HTML) will be integrated into your bloomed project, provided you chose a style when exporting HTML and used the Full Page option.
|
19 |
|
20 | ### Cover images
|
21 |
|
22 | If you have a folder called `images` in the same location as your export location (make one)
|
23 | and then inside that a file called `cover.jpg` the image will be sucked into your project and
|
24 | show up on your index page after you `bloom`. Va va voom.
|
25 |
|
26 | ### Exclude some sheets
|
27 |
|
28 | In Ulysses, just add the `%` symbol in the title of any of your sheets. These files will be created
|
29 | but excluded from the index file, so they won't show on the list. I chose a `%` symbol because it means "unfinished" to me.
|
30 |
|
31 | ### Show word counts? Alphabetize links on index page?
|
32 |
|
33 | Some of the questions the program will ask you is if you'd like to show words next to the
|
34 | links on the index page, or if you'd like those links alphabetized. Say y if yeah, default is no.
|
35 |
|
36 | ### bloom.json file
|
37 | If you save your answers to the CLI in a bloom.json file in the folder where you save your Ulysses web export,
|
38 | Bloom will ask if you want to use that file instead of asking you all the questions.
|
39 |
|
40 | ### SSML Support
|
41 |
|
42 | Answer yes to the SSML (speech synthesis markup language) question
|
43 | or put a `ssml : true` in your `bloom.json` file, and every page will be
|
44 | converted to an XML file and thrown in the `ssml` folder inside `index-bloomed`.
|
45 | Any HTML tags are stripped and don't show up in speech. Include an `author: "your name"` in bloom.json
|
46 | and "by 'your name'" will be inserted after the title with proper pauses.
|
47 | These files have been tested with [Amazon Polly](https://aws.amazon.com/polly/)
|
48 | using [aws-tts](https://github.com/eheikes/aws-tts) to generate mp3 files of short stories.
|
49 |
|
50 | ### FTP upload included
|
51 |
|
52 | Now bloom-cli will ask you if you want your project uploaded,
|
53 | and will ask you for FTP credentials. Use `ftp: true` in your `bloom.json` file.
|
54 | Bloom will still ask you for your credentials in this case, then upload your new site there.
|
55 |
|
56 | ### I don't want to upload through the CLI
|
57 |
|
58 | Open up FileZilla (or whatever FTP program people are using these days) and make a
|
59 | folder on your server to copy the files from `index-bloomed` into. Then navigate there in
|
60 | your browser. Voila: a website made from your Ulysses stack.
|