Giter Club home page Giter Club logo

simplerstatic's Introduction

WP2Static

A WordPress plugin for static site generation and deployment.

Latest: WP2Static joins Strattic, the leading WordPress to headless and static site end-to-end publishing platform!

Strattic is generously keeping the WP2Static plugin available and maintained for open source users!

Read Announcement

Installation options

Docs

Support Forum

Contributing

See CONTRIBUTING.md

Testing

WP2Static includes various types of code quality and functionality tests.

Tests are defined as Composer scripts within the composer.json file.

composer run-script test will run the main linting, static analysis and unit tests. It will not run code coverage by default. To run code coverage, use composer run-script coverage, this will require XDebug installed.

composer run-script test-integration will run end to end tests. This requires that you have the nix-shell command available from NixOS. More info on the intgration tests can be found in the README within the integration-tests directory.

You can run individual test stages by specifying any of the defined scripts within composer.json with a command like composer run-script phpunit. You can pass arguments, such as to skip slow external request making phpunit tests, run composer run-script phpunit -- --exclude-group ExternalRequests.

Continuous Integration is provided by GitHub Actions, which run code quality, unit and end to end tests.

simplerstatic's People

Contributors

leonstafford avatar szepeviktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simplerstatic's Issues

SimplerStatic.com website needs content

Hi there,

I am just browsing through all you static WP options and loving it.

Also followed your link to https://wordpress.org/plugins/simply-static/
It got an update on Dec 20 - seems like a minor dependency update.

But maybe it is a good chance to check in with the developer.
You linked simply static in a couple of documentation sites - and if the developer has fresh interest in his plugin that might be worth knowing.

I have come across static generators for WordPress a couple of times now, but stayed with caching.
... I slowly feel the time is ready for me to get back to static solution.
I have the impression you are an one person army (with some support) making sure, there have been and will be solutions to go static with WordPress. That's impressive!

Some minor bugs

There are two issues.

  1. <code>...</code> character entities are changing to real HTML
  2. shouldn't remove whitespace between span tags while automated HTML minification or plugin should allow to disable

With this plugin, none of my pages missed with WPML.
Plugin was able to do JavaScript redirect as well where needed. That's awesome!

Thanks

remove phpstan exclusions

Szia @szepeviktor,

Could you please guide me around the src/Page typing? I'm confused how the Page's properties are being used. I'm breaking functionality when I try setting them to public or private with getter/setters. Seems some are used by the Model's DB mapping and others are used as in-memory only.

Előre is köszönöm~

Class doesn’t exist: SimplerStatic\Transfer_files_locally_Task

as reported by user in forum:

[2020-08-14 05:56:53] Setting up
[2020-08-14 05:56:55] Fetched 322 of 322 pages/files
[2020-08-14 05:58:39] Class doesn’t exist: SimplerStatic\Transfer_files_locally_Task
[2020-08-14 05:58:39] Done! Finished in 00:01:48

That “Class doesn’t exist: SimplerStatic\Transfer_files_locally_Task”

And the files were not moved to the specified final folder, just stayed on the temporary one.

only running when WP_DEBUG_LOG is true

regardless of plugin's debug mode enabled or not

in WP's debug.log, we're seeing errors from the simple dom class


 170 [16-May-2020 03:00:21 UTC] PHP Warning:  preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /htdocs/wp-content/plugins/simplerstatic/vendor/sunra/php-simple-html-dom-parser     /Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 697


...

 272 [16-May-2020 03:01:50 UTC] PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 4 in /htdocs/wp-content/plugins/simplerstatic/vendor/sunra/php-simple-html-dom-parser/Src     /Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1378


...

1554 [16-May-2020 03:11:32 UTC] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/wp-content/plugins/simplerstatic/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simp     le_html_dom.php on line 704

Delete action return failed message

Error message

Deletion failed: There has been a critical error on your website.Learn more about debugging in WordPress.

Ref: https://youtu.be/_dUVPpMEnYc

Error logs

2020/05/23 17:46:10 [error] 103#103: *40 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/usr/html/wp-content/plugins/simplerstatic/includes/class-ss-plugin.php): failed to open stream: No such file or directory in /usr/html/wp-content/plugins/simplerstatic/uninstall.php on line 14PHP message: PHP Fatal error: require_once(): Failed opening required '/usr/html/wp-content/plugins/simplerstatic/includes/class-ss-plugin.php' (include_path='.:/usr/share/php7') in /usr/html/wp-content/plugins/simplerstatic/uninstall.php on line 14" while reading response header from upstream, client: 172.17.0.1, server: , request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "ftp.localhost:4046", referrer: "http://ftp.localhost:4046/wp-admin/plugins.php"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.