All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smarkdown.locations.locationFileSystem.md Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
# Location - File System


Markdown files can be read directly from the file system outside the web application
and the JEE container.



## Configuration


### Enable File System lookups

To enable a file system location add an ``file`` url to the configuration. 

Syntax:
```bash
file://{path-to-root}
```


Remember, on Linux, to include the leading slash ``/``. You will end up with 
three slashes in a row.


for example: 
```json
{"url": "file:///var/lib/smarkdown"}
``` 
is what's needed to be configured to see the file 

```bash
/var/lib/smarkdown/foo.md
``` 
at url
```bash
http://{host}:{port}/{context-root}/foo.html
```



### Listing


All Markdown files ``*.md`` in the defined directory and its sub directories 
will be included into the [Sitemap](../../sitemap.xhtml).




© 2015 - 2024 Weber Informatics LLC | Privacy Policy