尚未检测到更新。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