开源软件名称(OpenSource Name):cloudflare/cloudflare-docs开源软件地址(OpenSource Url):https://github.com/cloudflare/cloudflare-docs开源编程语言(OpenSource Language):CSS 67.7%开源软件介绍(OpenSource Introduction):Cloudflare DocsSetupYou must have Hugo installed on your system and available in your
You must also have a recent version of Node.js (14+) installed. You may use Volta, a Node version manager, to install the latest version of Node and $ curl https://get.volta.sh | bash
$ volta install node Finally, you will need to install the Node.js dependencies for this project using npm or another package manager: $ npm install DevelopmentWhen making changes to the site, including any content changes, you may run a local development server by running the following command: $ npm run dev This spawns a server that will be accessible via Additionally, this project includes a CI step for ensuring consistent code style. This applies to all files within the project, including markdown ( $ npm run lint Finally, some of these code-style errors may be fixed automatically. To do so, you may run: $ npm run format DeploymentOur docs are deployed using Cloudflare Pages. Every commit pushed to production will automatically deploy to developers.cloudflare.com, and any pull requests opened will have a corresponding staging URL available in the pull request comments. Visual Studio Code snippetsThis repository includes a file with Visual Studio Code snippets for the most common Hugo shortcodes used Developer Docs. The available snippets are:
Triggering one of the available snippets will insert their body content at the current cursor position. Additionally, the following snippets support surrounding existing text:
How to useNote: Make sure you open the root folder of your cloned repository in Visual Studio Code (VSCode), so that VSCode correctly detects the snippets file stored in the To enter a snippet:
To surround existing content with a snippet:
For Cloudflare employeesTo get write access to this repo, please reach out to the Developer Docs room in chat. License and Legal NoticesExcept as otherwise noted, Cloudflare and any contributors grant you a license to the Cloudflare Developer Documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file. Cloudflare products and services referenced in the documentation may be either trademarks or registered trademarks of Cloudflare in the United States and/or other countries. The licenses for this project do not grant you rights to use any Cloudflare names, logos, or trademarks. Cloudflare's general trademark guidelines can be found at https://www.cloudflare.com/trademark/. Cloudflare and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel, or otherwise. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论