Skip to content

Commit

Permalink
updating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zerasul committed Feb 21, 2020
1 parent b790c74 commit 1d8258f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -24,6 +24,7 @@ postDir = "posts"
defaultLayout = "template.html"
staticDir = "static"
title = "Blask | A Simple Blog Engine Based on Flask"
errors= { 404: "404"}
```

For last, to Run Blask, use the next Code:
Expand All @@ -35,7 +36,7 @@ For last, to Run Blask, use the next Code:
if __name__ == '__main__':
b = BlaskApp(templateDir=settings.templateDir, postDir=settings.postDir
, defaultLayout=settings.defaultLayout,
staticDir=settings.staticDir, title=settings.title)
staticDir=settings.staticDir, title=settings.title, errors={404:'404'})
b.run()
```

Expand Down
2 changes: 2 additions & 0 deletions posts/examples.md
Expand Up @@ -25,6 +25,8 @@ First if you need to run Blask, need to see the `settings.py` file and set the p

# Website title
title = 'Blask | A Simple Blog Engine Based on Flask'
# custom Error handlers
errors = { 404 : "404"}


Next you need to run the next code:
Expand Down
1 change: 1 addition & 0 deletions posts/index.md
Expand Up @@ -51,6 +51,7 @@ We also have some [examples](/examples) available.

Here are the release notes of each Blask version:

* [0.1.4](/0.1.4)
* [0.1.3](/0.1.3)
* [0.1.2](/0.1.2)
* [0.1.1](/0.1.1)
Expand Down
3 changes: 2 additions & 1 deletion posts/install.md
Expand Up @@ -24,6 +24,7 @@ After that, you need to configure Blask, create a file called _settings.py_ file
defaultLayout = "template.html"
staticDir = path.join(BASE_DIR, "static")
title = "Blask"
errors = { 404:"404"}

You can export a environment variable that point to this file:

Expand All @@ -38,7 +39,7 @@ You can run the application using this code:

if __name__ == '__main__':
b = BlaskApp(templateDir=settings.templateDir, postDir=settings.postDir
, defaultLayout=settings.defaultLayout, staticDir=settings.staticDir, title=settings.title)
, defaultLayout=settings.defaultLayout, staticDir=settings.staticDir, title=settings.title, errors={404 : "404"})
b.run()
If you use the environment Variable you can run Blask without arguments:
Expand Down

0 comments on commit 1d8258f

Please sign in to comment.