The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
cmp was being used from past.builtins library since it was deprecated in
PY2. It's hard to understand behaviour of their usages, so this is an
attempt to replicate behaviour with simpler logic, making this more
readable.
Also, removed usages of iteritems and string_types, compatibility
imports
`markdown` checks if the content is html, if not, converts to markdown.
This breaks when there are html tags in markdown. Instead we can
use `md_to_html` directly.
* feat(website): fetch email comments in issue portal
* fix: deepsource issues
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
* chore: remove unnecessary import
not sure how i missed it
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Co-authored-by: prafful1234 <prafful@mntechnique.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: Chinmay D. Pai <chinmaydpai@gmail.com>
- Extract title from h1 if it doesn't contain jinja
- Add _context_dict to context to be able to inspect it in templates
- Add inspect macro to inspect any variable
- Better defaults for controller_row template
Co-Authored-By: Suraj Shetty <surajshetty3416@gmail.com>
* [Base 64 Fix]: Added check for base64 image in abs_url
The abs_url filter used in website appends a '/' before every link.
This broke the website image display.
* fix(abs_url): add check for all image types
* Update utils.py