Commit graph

3,619 commits

Author SHA1 Message Date
Jorge Maldonado Ventura
7d6accac4d Code should be between backquotes () 2023-06-23 09:27:51 +02:00
Jorge Maldonado Ventura
7877376153 More corrections to pelican-themes.rst 2023-06-23 09:20:32 +02:00
Jorge Maldonado Ventura
168093a750 Fix typo in pelican-themes.rst 2023-06-23 09:05:34 +02:00
Deniz Turgut
1f6b344f7d Add sftp_upload Makefile target to .phony
Signed-off-by: Deniz Turgut <dturgut@gmail.com>
2023-06-04 10:44:00 +02:00
Matthew Pounsett
418a9191b0 Add devserver-global Makefile target to .phony, fixes #3065 2023-06-04 10:44:00 +02:00
Justin Mayer
23c50ea885
Merge pull request #3115 from mart-e/import-config-file 2023-06-04 10:36:55 +02:00
Justin Mayer
1b360acafa
Merge pull request #3114 from mart-e/import-markdown-wp 2023-06-04 10:35:44 +02:00
Matthew Pounsett
bbbc96cf83
Add quoting to devserver-global target in Makefile, fixes #3072 (#3073) 2023-06-04 10:34:09 +02:00
Justin Mayer
043ab617b8
Merge pull request #3124 from FriedrichFroebel/issue3110 2023-06-04 10:32:49 +02:00
Justin Mayer
8b6b7dac2d
Merge pull request #3139 from nikolausschueler/patch-1 2023-05-31 19:58:31 +02:00
Nikolaus Schüler
0a42b5f250
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-05-30 15:58:09 +02:00
Justin Mayer
6f93202e60 Add new Pelican Plugins org link to content docs 2023-05-22 15:12:09 +02:00
Martin (mart-e)
ef844dbe0a Use the default configuration
When importing a blog, a error is logged: 'No timezone information
specified in the settings'.
This is because the code calls read_settings() but no configuration
file is provided.
Instead of providing one (users may not already have one if they are
at the import step), use the default settings.
2023-05-14 08:50:06 +02:00
FriedrichFroebel
7adcfc7938 Allow resetting memoized cache. Fixes #3110. 2023-04-24 18:44:50 +02:00
Justin Mayer
86f62d0a92
Merge pull request #2963 from geoffff/master 2023-04-20 11:41:00 +02:00
geoffff
8bb9e0da48 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-04-20 11:34:38 +02:00
Justin Mayer
208332c0e6
Merge pull request #3112 from getpelican/update-functional-test-output 2023-04-20 08:38:04 +02:00
Justin Mayer
4db5c7ca4b Update to Invoke 2.0 for Python 3.11 compatibility 2023-04-16 09:08:31 +02:00
Justin Mayer
6ac497922f Update pre-commit hooks 2023-04-16 09:07:44 +02:00
Martin (mart-e)
219c01afb0 [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-03-29 14:07:23 +02:00
Justin Mayer
a2852942ea Update Pygments and Markdown dependency versions 2023-03-27 10:44:01 +02:00
Justin Mayer
06c9e0fb80 Pin Flake8 to 3.9.* in requirements/style.pip 2023-03-27 10:36:00 +02:00
Justin Mayer
385d5bf75e Update functional test output 2023-03-27 10:02:07 +02:00
Boluwatife Victor
b473280eac
Add better description of what Pelican does to README (#3102)
Co-authored-by: Justin Mayer <entroP@gmail.com>
2023-02-23 18:22:56 -08:00
Justin Mayer
95ff3b8e62
Merge pull request #3094 from kurtmckee/fix-readme-link-on-pypi-issue-3093
Fixes https://github.com/getpelican/pelican/issues/3093
2023-01-30 18:00:38 +01:00
Kurt McKee
f50bf26466
Use absolute URL's in the package long_description for PyPI
Fixes #3093
2023-01-30 08:20:12 -06:00
Justin Mayer
7850153c54
Merge pull request #3085 from jorgesumle/deprecate-36 2023-01-30 00:23:56 +01:00
Justin Mayer
504bfcf703
Merge pull request #3091 from EFord36/patch-1 2023-01-20 15:48:15 +01:00
Elliot Ford
b777bedce3
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-01-20 14:28:44 +00:00
Justin Mayer
4d82a42229 Upgrade Furo theme to 2022.12.07. Refs #3077
Should fix "Previous" and "Next" arrow styling issue.
2023-01-06 10:31:01 +01:00
Justin Mayer
ff665de3ca Tweak README slightly 2023-01-06 10:23:14 +01:00
Jorge Maldonado Ventura
5e986580e8 Change reference to Python version 3.6 from documentation (now 3.7) 2023-01-03 21:29:02 +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