Martin (mart-e)
61f74fbea8
[IMP] pelican_import with gmf instead of markdown
...
The markdown import of pandoc is their own flavour of markdown. It for
instance uses fenced divs[1] which are not supported by
python-markdown. When importing content from Wordpress, there is
several issues as explained in discussion 3113[2]
This change follows a discussion with pandoc developer[3]
[1] https://pandoc.org/MANUAL.html#divs-and-spans
[2] https://github.com/getpelican/pelican/discussions/3113
[3] https://fosstodon.org/@pandoc/110105559949588768
Take the following Wordpress blog post sample:
```html
<p><!-- wp:paragraph --></p>
<p>Paragraph content</p>
<p><!-- /wp:paragraph --></p>
<p><!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} --></p>
<div class="wp-block-image">
<figure class="aligncenter size-full"><img src="https://test.com/test.jpg " alt="" class="wp-image-3747" title="Some title"/><br />
<figcaption><em>Some caption</em></figcaption>
</figure>
</div>
<p><!-- /wp:image --></p>
```
Before this commit:
was imported as
```md
`<!-- wp:paragraph -->`{=html}
Paragraph content
`<!-- /wp:paragraph -->`{=html}
`<!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} -->`{=html}
::: wp-block-image
<figure class="aligncenter size-full">
<img src="https://test.com/test.jpg " title="Some title"
class="wp-image-3747" /><br />
<figcaption><em>Some caption</em></figcaption>
</figure>
:::
`<!-- /wp:image -->`{=html}
```
After this change:
```md
<!-- wp:paragraph -->
Paragraph content
<!-- /wp:paragraph -->
<!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} -->
<div class="wp-block-image">
<figure class="aligncenter size-full">
<img src="https://test.com/test.jpg " title="Some title"
class="wp-image-3747" /><br />
<figcaption><em>Some caption</em></figcaption>
</figure>
</div>
<!-- /wp:image -->
```
Fixes #3113
2023-06-23 14:21:36 +02:00
Matthew Pounsett
9fa7dbbc74
Add quoting to devserver-global target in Makefile, fixes #3072 ( #3073 )
2023-06-23 14:21:36 +02:00
FriedrichFroebel
15b3c10748
Allow resetting memoized cache. Fixes #3110 .
2023-06-23 14:21:36 +02:00
Nikolaus Schüler
56813d3528
Fix typo in pelican-themes.rst
...
The least change would be to just say "suffixed", but I don't think that's a correct english word, so I choose "followed by"
2023-06-23 14:21:36 +02:00
Justin Mayer
300f699c39
Add new Pelican Plugins org link to content docs
2023-06-23 14:21:36 +02:00
geoffff
a859552e33
Update paginator.py
...
Use str.startswith('/') to check whether 'ret' starts with a slash. The original code fails when 'ret' is an empty string, such as when INDEX_URL is set to "".
2023-06-23 14:21:36 +02:00
Justin Mayer
d4431c687d
Update Pygments and Markdown dependency versions
2023-06-23 14:21:36 +02:00
Justin Mayer
24a542a795
Update functional test output
2023-06-23 14:21:36 +02:00
Justin Mayer
f407a6833f
Update to Invoke 2.0 for Python 3.11 compatibility
2023-06-23 14:21:36 +02:00
Justin Mayer
9128adda9e
Update pre-commit hooks
2023-06-23 14:21:36 +02:00
Justin Mayer
225f17ffcd
Pin Flake8 to 3.9.* in requirements/style.pip
2023-06-23 14:21:36 +02:00
Boluwatife Victor
542a4a7a27
Add better description of what Pelican does to README ( #3102 )
...
Co-authored-by: Justin Mayer <entroP@gmail.com>
2023-06-23 14:21:36 +02:00
Kurt McKee
79955bb58d
Use absolute URL's in the package long_description for PyPI
...
Fixes #3093
2023-06-23 14:21:36 +02:00
Jorge Maldonado Ventura
41c86ec2e9
Change reference to Python version 3.6 from documentation (now 3.7)
2023-06-23 14:21:36 +02:00
Elliot Ford
35fdec9d63
Update Github actions badge
...
See the linked GitHub issue from the previous version of the badge: badges/shields#8671
In summary, these badges were changed in a breaking fashion such that the badges were just linking to the github issue rather than showing the data. Updating the url resolves this.
Also updated the link added to the badge image, so that it shows exactly the history of actions that the badge shows the most recent one of.
2023-06-23 14:21:36 +02:00
Justin Mayer
3bdd9315d6
Upgrade Furo theme to 2022.12.07. Refs #3077
...
Should fix "Previous" and "Next" arrow styling issue.
2023-06-23 14:21:36 +02:00
Justin Mayer
ba3f54dc9c
Tweak README slightly
2023-06-23 14:21:36 +02:00
Jorge Maldonado Ventura
80acb77c96
Translate sphinx.po into Spanish
2023-01-05 13:24:51 +01:00
Jorge Maldonado Ventura
0db762b859
Translate section "Installing Pelican"
2023-01-04 09:52:10 +01:00
Jorge Maldonado Ventura
f39a9aee2a
Translate Quickstart page into Spanish
2023-01-03 21:22:11 +01:00
Jorge Maldonado Ventura
21104436b6
Empieza a traducir la documentación de Pelican al castellano
2023-01-03 17:55:07 +01:00
Justin Mayer
f015ab89d9
Merge pull request #3055 from avaris/python-3.11
2022-10-26 11:12:53 -10:00
Deniz Turgut
3937028c00
update unit test to avoid using deprecated locale.getdefaultlocale()
2022-10-26 23:52:38 +03:00
Deniz Turgut
6ddbc83f43
add python 3.11 to CI and use setup-python pip cache
2022-10-26 23:50:36 +03:00
Justin Mayer
a51d75c8ed
Merge pull request #3043 from copperchin/use-tmp-in-testutils
2022-10-25 14:11:33 -10:00
Justin Mayer
1f6f4a3626
Merge pull request #3054 from renyuneyun/refactor/python-regex
2022-10-24 15:48:40 -10:00
renyuneyun (Rui Zhao)
cbddac44e4
Use (?P=) to replace \2 for intrasite link
2022-10-24 18:05:40 -07:00
Justin Mayer
66408d611f
Merge pull request #3051 from avaris/gh-actions-update
2022-10-24 18:00:17 -07:00
Deniz Turgut
cdc90d5d07
unpin flake8 and do not install pelican while checking
...
installing pelican brings in markdown. flake8 and markdown have
incompatible requirements for importlib-metadata. installing pelican
is not required to run flake8.
2022-10-23 18:25:25 +03:00
Deniz Turgut
6d11c6f2e5
use python 3.9 for lint, docs and deploy actions
...
3.7 is old and will soon be EOLed
this also fixes flake8 + importlib-metadata issues
2022-10-20 04:17:11 +03:00
Deniz Turgut
9d509253c3
update github actions
...
see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-20 04:09:48 +03:00
Ryan de Kleer
27f2c678cb
Use tmp dir for test output
...
`shutil.rmtree` would fail in `TestUtils.test_clean_output_dir` on some
filesystems if an application with a filewatcher had the pelican project
open while the test ran.
Using `tempfile.mkdtmp` for test directories circumvents this.
2022-09-16 22:59:54 -07:00
Justin Mayer
2a7e691000
Document switch from IRC to GitHub Discussions
2022-09-15 16:33:19 +02:00
Саша Черных
5d4cb5619b
Docs: Hidden posts also excluded from author index ( #3025 )
2022-09-13 14:30:43 +02:00
Justin Mayer
6af939e096
Merge pull request #3030 from lioman/master
2022-08-31 23:28:54 +02:00
Lioman
5103aa9a38
Remove python 3.6 from supported language versions
2022-08-23 13:07:19 +02:00
Justin Mayer
09d434d87b
Docs: Contact plugin/theme maintainers for those issues
2022-08-21 08:57:07 +02:00
Justin Mayer
062144a875
Merge pull request #3020 from timgates42/bugfix_typos
2022-08-04 15:09:53 +02:00
Justin Mayer
e265deb094
Merge pull request #2976 from pieqq/simple-theme-fixes
2022-08-04 15:08:09 +02:00
Justin Mayer
73c0320f62
Merge pull request #3014 from Lx/static-content-docs
2022-08-04 15:04:35 +02:00
Justin Mayer
083fb357bd
Merge pull request #3013 from Lx/mtime-docs
2022-08-04 15:03:20 +02:00
Anton Mosich
23f3804c96
Fix and update pre-commit hooks ( #3011 )
...
Co-authored-by: Justin Mayer <entroP@gmail.com>
2022-08-04 15:01:17 +02:00
Justin Mayer
1bcd6c5f56
Merge pull request #3023 from getpelican/furo-sphinx-theme
...
Use Furo as Sphinx documentation theme
2022-08-01 15:42:37 +02:00
Justin Mayer
21e855a29f
Adjust code style for Flake8 5.0+
...
We are pinned to Flake8 <4.0, but at least we'll be compliant if we ever
upgrade to Flake8 5.0+.
2022-08-01 13:24:21 +02:00
Justin Mayer
9c0c5b4929
Pin Flake8 due to upper bound on importlib-metadata
...
See: https://github.com/PyCQA/flake8/pull/1438
2022-08-01 13:23:01 +02:00
Justin Mayer
6487735efb
Update Pytest and plugin versions
...
Also remove pytest-pythonpath as Pytest 7+ includes comparable
functionality. Don't believe we were using it anyway.
2022-08-01 12:56:58 +02:00
Justin Mayer
09c420f40c
Update Jinja & Markdown dev dependency versions
2022-08-01 12:55:02 +02:00
Justin Mayer
fcfb39b8f2
Improve copyright year logic in Sphinx configuration
2022-08-01 12:53:09 +02:00
Justin Mayer
81b5fbe174
Add custom Furo page.html template for Sphinx docs
2022-08-01 12:53:09 +02:00
Justin Mayer
33aca76d78
Adjust extlinks configuration for Sphinx 5.0+
2022-08-01 12:53:09 +02:00