megumiteam / staticpress Goto Github PK
View Code? Open in Web Editor NEW[WordPress Plugin] staticpress - A WordPress plugin to Export your WordPress to static site
[WordPress Plugin] staticpress - A WordPress plugin to Export your WordPress to static site
=== StaticPress === Contributors: wokamoto, megumitheme,amimotoami Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted Tags: static Requires at least: 3.5 Tested up to: 4.5.2 Stable tag: 0.4.5 Transform your WordPress into static websites and blogs. == Description == Transform your WordPress into static websites and blogs. More documentation, you can find here: [StaticPress](http://en.staticpress.net/ "StaticPress") = Localization = "Static Press" has been translated into languages. Our thanks and appreciation must go to the following for their contributions: * Japanese (ja) - [OKAMOTO Wataru](http://dogmap.jp/ "dogmap.jp") (plugin author) * German (de) - [Olav Schettler](https://gist.github.com/oschettler/492541398b49d11cb746 "oschettler") If you have translated into your language, please let me know. == Installation == 1. Upload the entire `staticpress` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. == Frequently Asked Questions == none == Screenshots == 1. Sidebar menu 2. The admin page 3. Rebuild! == Changelog == **0.4.5 - May 27, 2016** Added movie ext for movie contents Added validations. **0.4.4 - June 19, 2015** add Turkish Translation adds woff2 support for fonts remove needless cast For wp_remote_get on SSL **0.4.3.7 - December 25,2014** Bug fix **0.4.3.6 - November 5, 2014** fixed Windows issue. **0.4.3.5 - July 15, 2014** fixed a case of message: 'PHP Notice: Trying to get property of non-object **0.4.3.4 - November 19, 2013** Unable to uninstall because of wrong filename. **0.4.3.2 - June 19, 2013** minor bug fix. **0.4.3.1 - June 15, 2013** some fix **0.4.3 - June 11, 2013** create 404.html. added some filter (and action) hook. **0.4.2.1 - June 7, 2013** minor bug fix. **0.4.2 - June 7, 2013** source code refactoring **0.4.0 - May 14, 2013** Initial release.
When installing on wordpress 4.0 throws these warnings.
Guess is not supported yet on 4.0.
Tested it out despite the warning and it's broken alright. on "Rebuild" it gives an "Error!" message.
Basic認証をかけると「フェッチ開始」のまま止まってしまったり、画像やcssなどのhtml以外のファイルだけしか出力しないです。
Basic 認証はWP BASIC Authというプラグインを使ったり、通常通り.htaccessを使ったりしましたが、どの場合でも上記の現象が発生します。
My theme contained a href="//cdn-images.mailchimp.com/embedcode/..."
. It was replaced to href="/static//cdn-images.mailchimp.com/embedcode/..."
.
Instead, href
s to CDNs should stay untouched.
<img class="alignnone size-medium wp-image-24"
src="/wp-content/uploads/2016/05/13092134_1754933144751190_6771984623030290556_n-215x300.jpg"
alt="13092134_1754933144751190_6771984623030290556_n"
width="215"
height="300"
srcset="http://example.com/wp-content/uploads/2016/05/13092134_1754933144751190_6771984623030290556_n-215x300.jpg 215w, http:///example.com/wp-content/uploads/2016/05/13092134_1754933144751190_6771984623030290556_n.jpg 688w"
sizes="(max-width: 215px) 85vw, 215px" />
When to paging the one category, "/hoge_category/page/~" following pages is not made correctly.
https://github.com/megumiteam/staticpress/blob/master/includes/class-static_press.php#L216
In this process, it is gone to evaluate "term_archive" having a plurality of pages.
Hey folks,
The site which we're using this on is getting bigger everyday so now it is taking almost an hour to complete.
As most of these pages do not need updating, I'm looking for a way to tell the plugin to only export new pages/files and items that have been updated in the last 24 hours.
Any advice would be very much appreciated.
Thank you.
My theme is a child theme of the parent theme. In the static/
directory, only files from the child theme are generated.
Instead, also files from the parent theme should be generated.
Initialyze...
Error!
Hi.
RSS file ( /feed ) cannot be exported.
It seems sometimes it was successful but after that it is failure.
Any solutions about this?
こんにちは。
RSSフィード(/feed)が「再構築」ボタンを押下しても更新されなくなりました。
サイトを作成して最初のころは成功していたようなのですが、何かをきっかけに、ファイルがエクスポートされないようです。
新しい投稿を作成したりすることが契機になるのかと思い、いろいろな契機を作ってみましたが、エクスポートされませんでした。
何か解決策はあるのでしょうか?
Wordpressダッシュボード内の操作で解決できるものでしょうか?
それとも Staticpress に問題がありますでしょうか?
お世話になります
Ver.0.4.12において、
https://github.com/megumiteam/staticpress/blob/master/includes/class-static_press.php#L360
にて作成しようとするディレクトリの書き込み権限がなかった場合、再構築ボタンを押下した後に下記表示がされた後、無応答の状態になります。
初期化中...
URL
author_archive (2)
front_page (1)
seo_files (2)
single (933)
static_file (902)
term_archive (95)
フェッチ開始
書き込みができない場合にエラーメッセージを表示すると良いと思います。
Hi guys,
thanks for your nice plugin.
It worked flawlessly for 3 years for me, but then I renamed a page from Multimedia to Videos.
Since then it is listed when I rebuild my StaticPress, but the content is only a
Not Found
Sorry, but you are looking for something that isn't here.
How can I debug, what is going wrong? I already completely deleted the page and created it again, but still the problem remains ): All other pages of my site work without problems.
Thanks for any hints!
Andreas
WordPress 4.2.4のカスタム投稿を使ったサイトで使わせていただいています。
画像をアップしている投稿が以下のようになってしまい、静的HTMLができずアクセスもできません。
【インストール先】/【カスタム投稿名】/01.html/画像名(拡張子なし)
こちら設定の問題でしょうか?
※実際の画像は【インストール先】/wp-content/uploads/以下にあります
なお、カスタム投稿のパーマリンクをCustom Post Type Permalinksプラグインで以下のように変更しています。
【インストール先】/【カスタム投稿名】/%postname%.html
ローカル上のVagrant環境にてStaticPressの導入を行っていますが、
初回の再構築を実行したところ、初期化中にエラーが発生してしまい、
処理を完了できませんでした。
仮想環境は、vccwをほぼ初期設定の状態で構築しており、
WordPressのバージョンは4.0.1を利用しておりますが、
このような場合、エラーの原因に心当たりはありますでしょうか?
もし何か分かりましたら、ご教授いただけますと幸いです。
環境:
Mac OS X 10.9.5
VirtualBox 4.3.18
Vagrant 1.6.5
出力先ディレクトリ:
/var/www/wordpress/
WordPress4.1で0.4.3.5から0.4.3.6へのアップデート後、一度静的ファイルを削除して再構築を行うと途中でエラーが出て失敗しました。
未サポートのWP4.1特有の問題だったら申し訳ないですが、そうでもなさそうなのでこちらに投稿させていただきます。
上記コミットのstatic_press::make_subdirectories()の修正を元に戻すと正常に動作しているようです。
make_subdirectoriesとの命名なので、引数に入ったファイル名の上位ディレクトリすべての存在をチェックし、足りない分を生成するためのメソッドですよね。
しかし、こちらの修正が入った後では、ファイルの親ディレクトリ1つのみを存在チェック・生成しているようです。親ディレクトリだけでなく、親の親のディレクトリなどが存在しない場合、エラーが起こるのだと思いますが、いかがでしょうか?
Hi,
Can you clarify following.
How does this plugin works when a new post is created do we need to do manuall rebuild or it automatically rebuilds the newer portions.
overall a bit more clear documentation would help. I am really rooting for this plugin as this worked smoothly with multisite installation also and would be a great tool where other static generators failed.
I can not see any logs, so sorry for unclear description, however the plugin just hangs with very high cpu usage on export while the gui just shows Fetch Start
. Only stop safter php max execution time.
Please test your plugin befoer release.
I tested an export with the simply static plugin, works with zero problems in a few seconds, near to zero cpu usage. Please look at that plugin, maybe it would be better to contribute to that well working plugin with your ideas!
Hi, please add support for using this plugin via wp-cli, THANKS!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.