尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證LezWatch.TV Theme - Underscores
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗The 100% Original Theme for LezWatch.TV
Based on the Yikes! Starter Theme (circa 2018) and Underscores (circa 2016), the LezWatch.TV theme has been customized for custom post types (shows, characters, actors) and to be as queer as possible.
Usage documentation can be found at docs.lezwatchtv.com
Server crontab is used to run CLI commands that generate and update complex content.
The command wp lwtv generate cron daily will run a different debugger each day, update the FacetWP cache, and so on.
It's recommended to use Homebrew on macOS or Chocolatey for Windows to install the project dependencies.
git clone [email protected]:lezwatch/lwtv-underscorescd lwtv-underscoresnvm usenpm installnpm run updaternpm run buildAll pull requests should be made to production.
production branch as base, create a new branch with a descriptive name like fixing-charts or fix/chartjs421 or feature/latest-posts . Commit your work to that branch until it's ready for full testingproduction branch.npm run merge-to-develop to push it to development (no extra PR needed).production and the job is done!If you need to update the theme version (due to changing CSS or adding features) edit the package.json file and change the version. When npm run build runs, it will automagically update all needed files.
To install and update:
$ npm install - Install all the things.$ npm run updater - Updates all the things.$ npm run build - Builds all the CSS and handles composer versions.To run linting:
$ npm run lint - Lint everything$ npm run lint:css - Lint all SCSS files in all folders$ npm run lint:js - Lint all Block JS files only$ npm run lint:php - Lint all PHP files (excludes 3rd party plugins)To fix lint issues automatically:
$ npm run fix - Fix everything$ npm run fix:css - Fix all SCSS files in all folders$ npm run fix:js - Fix all Block JS files only$ npm run build will build all the CSS and JS, as well as update all the libraries.
$ npm run buildquick will build the assets and copy files over without updating libraries.
JS and PHP libraries are included via NPM and Composer. WordPress plugins that have been forked are now included in the main code and managed by us to prevent breakage.
In order to speed up the site, we make use of SVG sprites to generate our font-icons. The icons can be found in the private Symbolicons Repository. When a change is pushed to development and production branches, it will auto-deploy.
If the sprites are missing, the site falls back to Font Awesome.
Pushes to branches are automatically deployed via Github Actions as follows:
/plugins/)As everything is interconnected, we include some required plugins with the theme.
The following plugins are forked from their original versions to support newer versions of WordPress and PHP. They are stored in the /plugins/ folder:
shadow-taxonomy - By PatelUtkarsh/plugins/lwtv-plugin/)For the plugin, we use Namespaces and auto-loading in order to properly generate and call new content dynamically.
A component can be thought of as a sub-plugin. It is an atomic, independent module that stores business logic related to a specific feature. It may expose some template tags (functions) that can be called from within the theme.
All Components are stored in /plugins/lwtv-plugins/php/ and the details of their use in /plugins/lwtv-plugins/php/readme.md
Development is fully documented in /plugins/lwtv-plugins/php/blocks/README.md
There is a function for logging to the error log only if debug is active: lwtv_plugin()->debug_log( $TYPE, $MESSAGE )
This will output [TYPE]: Message into the error log.
The following folders/files are for use by Developers. They are not pushed to the dev nor production servers.
/_build_scripts/ - All of our build scripts and tools./.cursor/ - Cursor specific settings./.github/ - all Github specific files such as workflows, dependabot, and pull request templates./.githooks/ - shared hooks (pre-commit etc)/.vscode/ - default VSCode settings/docs/ - Structure files.editorconfig - Basic editor configuration.gitignore - Files and folders to be exempt from Git syncs.npmrc - NPM configuration requirements.nvmrc - NVM version controlcomposer.json - Composer settings, includes all libraries usedpackage-lock.json - Saved package.json datapackage.json - NPM configuration, commands, and libraries usedphpcs.xml.dist - PHPCS configuration