Skip to content
Permalink
Browse files

initial commit

Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
  • Loading branch information...
fscherf committed Nov 5, 2018
0 parents commit aa4ec1ac50cd441960b7c98931519c4cc00fc9eb
Showing with 21,493 additions and 0 deletions.
  1. +4 −0 .coveragerc
  2. +272 −0 .gitignore
  3. +2 −0 MANIFEST.in
  4. +26 −0 Makefile
  5. +4 −0 REQUIREMENTS.dev.txt
  6. +9 −0 bin/flamingo-build
  7. +165 −0 bin/flamingo-server
  8. +14 −0 bin/flamingo-shell
  9. +20 −0 doc/api.rst
  10. +6 −0 flamingo/__init__.py
  11. 0 flamingo/core/__init__.py
  12. +243 −0 flamingo/core/context.py
  13. +225 −0 flamingo/core/data_model.py
  14. +2 −0 flamingo/core/errors.py
  15. +88 −0 flamingo/core/parser.py
  16. +10 −0 flamingo/core/plugins/__init__.py
  17. +37 −0 flamingo/core/plugins/authors.py
  18. +10 −0 flamingo/core/plugins/html.py
  19. +72 −0 flamingo/core/plugins/i18n.py
  20. +51 −0 flamingo/core/plugins/layers.py
  21. +17 −0 flamingo/core/plugins/meta_data.py
  22. 0 flamingo/core/plugins/rst/__init__.py
  23. +44 −0 flamingo/core/plugins/rst/base.py
  24. +108 −0 flamingo/core/plugins/rst/bootstrap3.py
  25. +29 −0 flamingo/core/plugins/rst/file.py
  26. +24 −0 flamingo/core/plugins/rst/image.py
  27. +47 −0 flamingo/core/plugins/tags.py
  28. +34 −0 flamingo/core/settings.py
  29. +2 −0 flamingo/core/templating/__init__.py
  30. +20 −0 flamingo/core/templating/base.py
  31. +29 −0 flamingo/core/templating/jinja2.py
  32. +43 −0 flamingo/core/utils/aiohttp.py
  33. +78 −0 flamingo/core/utils/aionotify.py
  34. +93 −0 flamingo/core/utils/cli.py
  35. +37 −0 flamingo/core/utils/imports.py
  36. +18 −0 flamingo/core/utils/pagination.py
  37. +37 −0 flamingo/default_settings.py
  38. +32 −0 flamingo/server/index.html
  39. +19,152 −0 flamingo/server/lib/ractive.js
  40. +1 −0 flamingo/server/lib/ractive.js.map
  41. +9 −0 flamingo/server/lib/ractive.min.js
  42. +1 −0 flamingo/server/lib/ractive.min.js.map
  43. +152 −0 flamingo/server/main.js
  44. +94 −0 flamingo/server/style.css
  45. 0 flamingo/theme/templates/author.html
  46. 0 flamingo/theme/templates/authors.html
  47. +8 −0 flamingo/theme/templates/base.html
  48. +5 −0 flamingo/theme/templates/page.html
  49. +6 −0 flamingo/theme/templates/tag.html
  50. +12 −0 flamingo/theme/templates/tags.html
  51. +6 −0 pytest.ini
  52. +28 −0 setup.py
  53. +51 −0 tests/test_core_parser_base.py
  54. +2 −0 tests/test_package.py
  55. +14 −0 tox.ini
@@ -0,0 +1,4 @@
[run]
branch = True
source = flamingo
omit =
@@ -0,0 +1,272 @@

# Created by https://www.gitignore.io/api/python,vim,emacs,eclipse
# Edit at https://www.gitignore.io/?templates=python,vim,emacs,eclipse

### Eclipse ###

.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# CDT- autotools
.autotools

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

### Eclipse Patch ###
# Eclipse Core
.project

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Annotation Processing
.apt_generated

.sts4-cache/

### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

### Python Patch ###
.venv/

### Python.VirtualEnv Stack ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json

### Vim ###
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~

# End of https://www.gitignore.io/api/python,vim,emacs,eclipse

/test-site
@@ -0,0 +1,2 @@
recursive-include flamingo/server *
recursive-include flamingo/theme *
@@ -0,0 +1,26 @@
PYTHON=python3.5
PYTHON_VENV=env

$(PYTHON_VENV)/.created: REQUIREMENTS.dev.txt
rm -rf $(PYTHON_VENV) && \
$(PYTHON) -m venv $(PYTHON_VENV) && \
. $(PYTHON_VENV)/bin/activate && \
pip install -r ./REQUIREMENTS.dev.txt && \
date > $(PYTHON_VENV)/.created

env: $(PYTHON_VENV)/.created

clean:
rm -rf $(PYTHON_VENV)

test: env
. $(PYTHON_VENV)/bin/activate && \
tox

edit: env
. $(PYTHON_VENV)/bin/activate && \
$$EDITOR

shell: env
. $(PYTHON_VENV)/bin/activate && \
ipython
@@ -0,0 +1,4 @@
-e .
tox
flake8
ipython==6
@@ -0,0 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flamingo.core.utils.cli import parse_args
from flamingo.core.context import Context

namespace, settings = parse_args()

Context(settings).build()

0 comments on commit aa4ec1a

Please sign in to comment.
You can’t perform that action at this time.