wporg-news-2021
所属分类:建站系统
开发工具:SCSS
文件大小:1275KB
下载次数:0
上传日期:2022-11-28 04:23:19
上 传 者:
sh-1993
说明: WordPress.org新闻主题
(The WordPress.org News Theme)
文件列表:
wporg-news-2021-trunk (0, 2022-09-24)
wporg-news-2021-trunk\.wp-env.json (747, 2022-09-24)
wporg-news-2021-trunk\bs-config.js (856, 2022-09-24)
wporg-news-2021-trunk\composer.json (1542, 2022-09-24)
wporg-news-2021-trunk\composer.lock (87111, 2022-09-24)
wporg-news-2021-trunk\env (0, 2022-09-24)
wporg-news-2021-trunk\env\0-sandbox.php (38258, 2022-09-24)
wporg-news-2021-trunk\env\import.sh (208, 2022-09-24)
wporg-news-2021-trunk\env\media.xml (602032, 2022-09-24)
wporg-news-2021-trunk\env\misc.sh (119, 2022-09-24)
wporg-news-2021-trunk\env\podcasts.xml (272838, 2022-09-24)
wporg-news-2021-trunk\env\posts.xml (1049364, 2022-09-24)
wporg-news-2021-trunk\package.json (1181, 2022-09-24)
wporg-news-2021-trunk\source (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021 (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\bottom-banner.html (2640, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-category-community.html (489, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-category-events.html (350, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-category-month-in-wordpress.html (194, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-category-releases.html (355, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-category.html (539, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-page.html (979, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-podcast.html (513, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-posts-index.html (585, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\content-single.html (1029, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\front-page (0, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\front-page\latest-posts.html (1124, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\front-page\latest-release.html (970, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\front-page\people-of-wordpress.html (755, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\header.html (173, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\local-navigation.html (1557, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\podcast-sidebar.html (318, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\podcast-social-links.html (1129, 2022-09-24)
wporg-news-2021-trunk\source\wp-content\themes\wporg-news-2021\block-template-parts\post-navigation.html (497, 2022-09-24)
... ...
# WordPress.org News Theme, 2021 edition
This is starting as a fork of [Blockbase](https://github.com/Automattic/themes/tree/trunk/blockbase).
i The header/footer live in [the mu-plugins repository](https://github.com/WordPress/wporg-mu-plugins/), but are
automatically provisioned into this one. Changes to the header/footer should be made in the `mu-plugins` repo.
## Development
### Prerequisites
* Docker
* Node/npm
* Yarn
* Composer
### Setup
1. Set up repo dependencies: `yarn run initial-setup`
1. Build the assets: `yarn workspaces run build`. The theme can't be activated until this step is done.
1. Start up and provision the environment: `yarn run env:setup`
1. Visit site at `localhost:8888`
1. Log in with username `admin` and password `password`
### Environment management
These must be run in the project's root folder, _not_ in theme/plugin subfolders.
* Stop the environment: `yarn run env:stop` or `yarn run wp-env stop`
* Restart the environment: `yarn run env` or `yarn run wp-env start`
* Reset the dev site's content: `yarn run env:reset && yarn run env:import`
* SSH into docker container: `docker exec -it {container ID} /bin/bash`. You can get the ID from `docker ps`.
### Asset management
* Build all assets once: `yarn workspaces run build`
* Rebuild all assets on change: `yarn run start:all`
### Sync/Deploy
The built files are committed to `dotorg.svn` so they can be deployed. They aren't synced to `meta.svn`, since they're already open in GitHub.
To sync these to `dotorg.svn`, run `bin/sync/news.sh` on a w.org sandbox. Once they're committed, you can deploy like normal.
近期下载者:
相关文件:
收藏者: