Skip to content

Commit a4d1c38

Browse files
committed
Updated docs for output change
1 parent e7775ac commit a4d1c38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ There is a simple example setup in the `Example/` folder, which shows a simple w
2626
`-h` prints out the help menu.
2727
`-d` specifies a directory to run through recursively (this will grab all the files in any subdir, keep the order/layout).
2828
`-t` specifies the directory to grab the templates from, if it is not provided it grabs templates from the input directory (or if the input was not a directory it uses the current directory).
29-
`-o` is the directory to output the generated files to, if not provided it using the current directory.
29+
`-o` is the directory to output the generated files to, if not provided it outputs to a directory `/output`.
3030
`--no-warnings` silences any warnings, and just runs without worrying if it overwrites any files.
3131
`-v` explains what the script is doing, turns on verbose mode
3232
`-c` copies the entire source (input) directory to the output directory, the `-d` flag must be used, and only one directory may be provided
3333

3434
#### Tips
3535
By putting the output files into their own designated folder, so as long as you setup your webserver correctly, you can prevent the templates and source files from being accessed, by setting your webserver's root folder to be output folder.
36-
If you want another example, go have a look at my personal website, which is using SSRI, the repository for that is [here](https://github.com/Sebagabones/mahoosivelygay). The command I use for templating this is `ssri -d staging -t templates -o sites`.
36+
If you want another example, go have a look at my personal website, which is using SSRI, the repository for that is [here](https://github.com/Sebagabones/mahoosivelygay). The command I use for templating this is `ssri -d staging -t templates -o sites -c` (you will have an error if you run this in this dir as my emacs config files are not in templates - that is fine).
3737

3838
### Why?
3939
I wanted something that worked without any dependencies, and didn't require learning a new markup style. The main goal for this was to be able to write pure plain HTML pages without using external libraries needing to be imported, and that didn't use JavaScript to load things in the browser. Could I have used something like NextJS for this? Probably - but I wanted something that would be very simple to use (albeit much less powerful).

ssri/ssri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def parse_args(args):
310310
default=["./output"],
311311
nargs=1,
312312
type=str,
313-
help="the directory for output files to be placed (default is current directory)",
313+
help="the directory for output files to be placed (default is in './output')",
314314
)
315315
parser.add_argument(
316316
"--no-warnings",

0 commit comments

Comments
 (0)