Skip to content

Hultner/flaskcwg.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Community Workgroup

How does the site gets built

Edit files in templates, generated files live in docs.

What is the techstack behind?

jamstack: Generate pages using Jinja templates.

flask + livewatch: If you want to auto regenerate files without executing static.py.

How are the docs generated?

You need to have the jamstack library installed.

Run static.py.

How to add a new page?

In static.py, under generate, add another generate function:

def main(args):
    def gen():
        generate('index.html', join(settings.OUTPUT_FOLDER, 'index.html'), **context)

Like this:

def main(args):
    def gen():
        generate('index.html', join(settings.OUTPUT_FOLDER, 'index.html'), **context)
        generate('source_file.html', join(settings.OUTPUT_FOLDER, 'output_file.html'), **context)

Where source_file.html is the name of the file located in templates/ and output_file.html is the output file which will be located in docs/.

See index.html in templates.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 85.6%
  • Python 14.4%