|
| 1 | +Links: ~select:-:Select a subject!selected disabled hidden|S-Structure:The structure of a Storyteller website|S-Markdown:Using Markdown|S-Images:Handling images~~space:3~Next: ~sid:Structure:Website structure~ |
| 2 | + |
| 3 | +# How to set up a Storyteller website |
| 4 | + |
| 5 | +There are two ways to use Storyteller: |
| 6 | + |
| 7 | + 1. Open a Neocities account and build your site using the instructions below. |
| 8 | + |
| 9 | + 1. Download Storyteller files from the [repository](https://github.com/easycoder/easycoder.github.io/tree/master/storyteller) and copy them to your server. This is the option for people who have direct access to their own websites. |
| 10 | + |
| 11 | +## Setting up using Neocities |
| 12 | + |
| 13 | +Start by opening a [Neocities](https://neocities.org) account. This is pretty simple; the main thing is to decide what you want to call your website and hope nobody else has already taken that name. |
| 14 | + |
| 15 | +Once you have chosen your name your website will be live and can be seen by anyone who knows its name. All editing of your site is done in the Neocities online editor, so go into that. You'll see some standard files as supplied by the Neocities registration robot. Follow these simple steps: |
| 16 | + |
| 17 | + 1. Delete all the files and folders listed except `index.html`. |
| 18 | + |
| 19 | + 1. Click the `Edit` button to edit the `index.html` file. |
| 20 | + |
| 21 | + 1. Delete its existing contents. |
| 22 | + |
| 23 | + 1. Copy the HTML text below (between the horizontal lines) and paste it into the editor. |
| 24 | + |
| 25 | + 1. Click `Save`. |
| 26 | + |
| 27 | + 1. Click `Dashboard` on the left of the button bar to return to the file listing screen. |
| 28 | +<hr> |
| 29 | +``` |
| 30 | +<html> |
| 31 | + <head> |
| 32 | + <meta charset="UTF-8"> |
| 33 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 34 | + <title></title> |
| 35 | + </head> |
| 36 | + |
| 37 | + <body> |
| 38 | + |
| 39 | + <pre id="storyteller-branch" style="display:none">master</pre> |
| 40 | + <pre id="storyteller-stories" style="display:none">(Name of my stories folder)</pre> |
| 41 | + <pre id="easycoder-script" style="display:none"> |
| 42 | + |
| 43 | + script Boot |
| 44 | + pre Branch |
| 45 | + variable B |
| 46 | + variable Script |
| 47 | + attach Branch to `storyteller-branch` |
| 48 | + put the content of Branch into B |
| 49 | + require js `https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io@` cat B cat `/dist/plugins/showdown.js?v=200413` |
| 50 | + rest get Script from `https://cdn.jsdelivr.net/gh/easycoder/storyteller@` cat B cat `/storyteller.txt?v=200413` |
| 51 | + run Script |
| 52 | + |
| 53 | + </pre> |
| 54 | + |
| 55 | + <script type='text/javascript' src='https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js?v=200413'></script> |
| 56 | + |
| 57 | + </body> |
| 58 | +</html> |
| 59 | +``` |
| 60 | +<hr> |
| 61 | +Now carefully follow these steps: |
| 62 | + |
| 63 | + 1. Click the `Edit` button for `index.html`. |
| 64 | + |
| 65 | + 1. Find the text `(Name of my stories folder)` and replace it (and the 2 brackets) with a name you will use for your stories folder. The name can be anything you like (but no spaces, please) so make it appropriate. For example, if you are writing about holidays you could call it `MyHolidays`. |
| 66 | + |
| 67 | + 1. Click `Save`. |
| 68 | + |
| 69 | + 1. Back out of the editor to the Dashboard. |
| 70 | + |
| 71 | + 1. Click the `New Folder` button and type the name you just gave for your stories. This folder is where you will keep all your story files. |
| 72 | + |
| 73 | + 1. Click its name to go into your stories folder. |
| 74 | + |
| 75 | + 1. Click `New File` and type the name `title.txt`. Click `Create`. |
| 76 | + |
| 77 | + 1. Click `Edit` against the new file. |
| 78 | + |
| 79 | + 1. Type the name of your website as you'd like it to appear in the title bar of the browser. |
| 80 | + |
| 81 | + 1. Click `Save`. |
| 82 | + |
| 83 | + 1. Click `Dashboard` on the left of the button bar to return to the file listing screen. |
| 84 | + |
| 85 | + 1. Click `New File` and type the name `theme.txt`. Click `Create`. |
| 86 | + |
| 87 | + 1. Click `Edit` against the new file. |
| 88 | + |
| 89 | + 1. Type the name of a theme chosen from this list of those currently available: |
| 90 | + |
| 91 | + - `storyteller`, the theme used by this site, with a scroll border and blue sky header |
| 92 | + |
| 93 | + - `grass`, lush border of thick grass |
| 94 | + |
| 95 | + - `herbal`, which has a border of what looks like short grass |
| 96 | + |
| 97 | + - `pencil`, a border design made of 2 pencils bent into a frame |
| 98 | + |
| 99 | + - `thin-gold`, a thin gold frame |
| 100 | + |
| 101 | + - `wood1`, a thick wooden frame |
| 102 | + |
| 103 | + - `wood2`, a much thinner wooden frame |
| 104 | + |
| 105 | + 1. Click `Save`. |
| 106 | + |
| 107 | + 1. Click `Dashboard` on the left of the button bar to return to the file listing screen. |
| 108 | + |
| 109 | +You now have an empty Storyteller website, so now you can actually start building your own website. The way it works is that inside the `stories` folder you can have any number of _subject_ folders, each handling one or more pages on your site. Each of these folders has inside it another folder for any images that will be used by that subject, plus 2 text files: |
| 110 | + |
| 111 | + - `title.txt` - holds the text of the title that will appear at the top of the page (here it's `Starting Storyteller`). |
| 112 | + - `content.txt` - holds the content of your page, which is text plus images, where the images are not directly embedded but are referred to by their names in the `images` folder. |
| 113 | + |
| 114 | +The system always starts off by looking in the subject folder whose name is `home`, so create a folder called `home` inside your stories folder. Inside this create the `images` folder and the `title.txt` and `content.txt` text files. Click the `Edit` button for `title.txt`, type the title of your website and save it. Then click the `Edit` button for `content.txt` and type a couple of short paragraphs - anything you like just to test the system. Save this file. |
| 115 | + |
| 116 | +Each Subject starts off with just the one topic (`content.txt`) but you can add as many more as you like. For example, if you want to write a page about a holiday in India you might call it `India.txt`. There'a full description of all this on our ~sid:Structure~ page. |
| 117 | + |
| 118 | +Now you can view your website by clicking the big box at the top left of the editor screen or the site title to its right. Your content with the title you chose should appear in a new browser window. It it doesn't, look carefully at all the files and make any necessary corrections. On our ~sid:info~ page you'll see contact details if you need to ask questions. |
| 119 | + |
| 120 | +The best way to learn is often by following examples. So at the bottom of each of these pages you'll see a link that when clicked opens a page containing the _source code_ of the page; in other words what the author of the page was working with. You can use this to check on the precise syntax of any feature such as a right-aligned image or a drop-down list. |
| 121 | + |
| 122 | +Sometimes your browser may not notice you have made changes to your website and will continue to show you the old version. This is rather annoying and to get round it you will need to learn how to clear the browser cache. This process varies from browser to browser but Google will be able to tell you how to do it. Just search for _firefox clear cache_ or _chrome clear cache_ etc. |
| 123 | + |
| 124 | +You can do all your editing in Neocities using their built-in editor or you can maintain a corresponding set of files on your computer and upload each one after making changes. If you understand the processes involved you can also run a copy of the website on your own computer by using the `rest.py` webserver provided in our [Github repository](https://github.com/easycoder/storyteller), which makes for a quicker way to make changes and test them before uploading to the live site. (You will also need to download `bottle.py` for this to work.) |
| 125 | + |
| 126 | +~sid:Structure:The structure of a Storyteller website~ |
| 127 | + |
| 128 | +~sid:Markdown:Using Markdown in Storyteller~ |
| 129 | + |
| 130 | +~sid:Images:Handling images~ |
| 131 | + |
| 132 | +[Click here to see the source code for this page](/storyteller/GetStoryteller/source.txt) |
0 commit comments