UNPKG

3.56 kBMarkdownView Raw
1# bloom-cli
2
3A 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
91. Open a terminal and type `npm install bloom-cli -g` to install `bloom-cli` globally, letting you `bloom` from wherever you are.
102. 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).
113. Navigate (via terminal / prompt) to the folder where you saved your HTML file - usually it's named `index.html`
124. Type `bloom` in your terminal.
135. 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.
146. 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
18Take 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
22If you have a folder called `images` in the same location as your export location (make one)
23and then inside that a file called `cover.jpg` the image will be sucked into your project and
24show up on your index page after you `bloom`. Va va voom.
25
26### Exclude some sheets
27
28In Ulysses, just add the `%` symbol in the title of any of your sheets. These files will be created
29but 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
33Some of the questions the program will ask you is if you'd like to show words next to the
34links on the index page, or if you'd like those links alphabetized. Say y if yeah, default is no.
35
36### bloom.json file
37If you save your answers to the CLI in a bloom.json file in the folder where you save your Ulysses web export,
38Bloom will ask if you want to use that file instead of asking you all the questions.
39
40### SSML Support
41
42Answer yes to the SSML (speech synthesis markup language) question
43or put a `ssml : true` in your `bloom.json` file, and every page will be
44converted to an XML file and thrown in the `ssml` folder inside `index-bloomed`.
45Any HTML tags are stripped and don't show up in speech. Include an `author: "your name"` in bloom.json
46and "by 'your name'" will be inserted after the title with proper pauses.
47These files have been tested with [Amazon Polly](https://aws.amazon.com/polly/)
48using [aws-tts](https://github.com/eheikes/aws-tts) to generate mp3 files of short stories.
49
50### FTP upload included
51
52Now bloom-cli will ask you if you want your project uploaded,
53and will ask you for FTP credentials. Use `ftp: true` in your `bloom.json` file.
54Bloom 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
58Open up FileZilla (or whatever FTP program people are using these days) and make a
59folder on your server to copy the files from `index-bloomed` into. Then navigate there in
60your browser. Voila: a website made from your Ulysses stack.