# decap-cms **Repository Path**: icelee123/decap-cms ## Basic Information - **Project Name**: decap-cms - **Description**: 为decap-cms提供gitee支持 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-05 - **Last Updated**: 2026-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Decap CMS](/img/decap.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/decaporg/decap-cms/blob/main/LICENSE) [![Netlify Status](https://api.netlify.com/api/v1/badges/8b87160b-0a11-4f75-8050-1d21bc1cff8c/deploy-status)](https://app.netlify.com/sites/decap-www/deploys) [![npm version](https://img.shields.io/npm/v/decap-cms.svg?style=flat)](https://www.npmjs.com/package/decap-cms) [![Build Status](https://github.com/decaporg/decap-cms/workflows/Node%20CI/badge.svg)](https://github.com/decaporg/decap-cms/actions?query=branch%3Amain+workflow%3A%22Node+CI%22) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/decaporg/decap-cms/blob/main/CONTRIBUTING.md) [decapcms.org](https://www.decapcms.org/) A CMS for static site generators. Give users a simple way to edit and add content to any site built with a static site generator. _Decap CMS is the new name of Netlify CMS [since February 2023](https://www.netlify.com/blog/netlify-cms-to-become-decap-cms/)._ Join us on Discord for community chat. ## Gitee 支持(实验性) 本项目已增加对 [Gitee](https://gitee.com) 的支持,目前处于实验性阶段。 **当前状态**:仅测试基本的 OAuth 流程及提交文章流程,不做其他保证。 ### Decap CMS 配置 ```yaml backend: name: gitee repo: / branch: master base_url: https:///gitee-proxy/ api_root: https://gitee.com/api/v5 auth_type: pkce app_id: ``` ### 代理服务(必需) 由于 Gitee 不支持 PKCE,必须启动代理服务以完成 OAuth 授权。DECAP CMS以PKCE模式执行,代理作用是降级为标准授权码模式,添加client_secret **第一步:启动Go 代理服务** 先将main.go里面的client_secret修改成自己的client_secret ```bash go run tool/main.go ``` **第一步:进行Nginx 代理** ```nginx location /gitee-proxy/ { proxy_pass http://127.0.0.1:5000/; proxy_set_header Host gitee.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } ``` 详细信息请参考 [packages/decap-cms-backend-gitee/README.md](packages/decap-cms-backend-gitee/README.md)。 ## How It Works Decap CMS is a single-page app that you pull into the `/admin` part of your site. It presents a clean UI for editing content stored in a Git repository. You setup a YAML config to describe the content model of your site, and typically tweak the main layout of the CMS a bit to fit your own site. When a user navigates to `/admin/` they'll be prompted to log in, and once authenticated they'll be able to create new content or edit existing content. Read more about Decap CMS [Core Concepts](https://www.decapcms.org/docs/intro/). ## Installation and Configuration The Decap CMS can be used in two different ways. * A Quick and easy install, that requires you to create a single HTML file and a configuration file. All the CMS JavaScript and CSS are loaded from a CDN. To learn more about this installation method, refer to the [Quick Start Guide](https://www.decapcms.org/docs/quick-start/) * A complete, more complex install, that gives you more flexibility but requires that you use a static site builder with a build system that supports npm packages. ## Sponsor Help support Decap CMS development by becoming a sponsor! Your contributions help us maintain and improve this open-source project. [![GitHub Sponsors](https://img.shields.io/badge/Sponsor-GitHub-ea4aaa?style=for-the-badge&logo=github)](https://github.com/sponsors/decaporg) [![Open Collective](https://img.shields.io/badge/Sponsor-Open%20Collective-blue?style=for-the-badge&logo=opencollective)](https://opencollective.com/decap) These are our sponsors on both platforms. Thank you for your support! ![Open Collective Backers](https://opencollective.com/decap/backers.svg?limit=30&button=false&avatarHeight=48&width=400) Zwyx  smolcodes  shizik  JacquesRaoult   ## Contribute New contributors are always welcome! Check out [CONTRIBUTING.md](https://github.com/decaporg/decap-cms/blob/main/CONTRIBUTING.md) to get involved. ## Change Log This project adheres to [Semantic Versioning](http://semver.org/). Every release is documented on the GitHub [Releases](https://github.com/decaporg/decap-cms/releases) page. ## License Decap CMS is released under the [MIT License](LICENSE). Please make sure you understand its [implications and guarantees](https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html). ## Maintainers Maintained with care by PM TechHub & friends. ## Professional help Our partners offer a range of services that can help you get the most out of Decap CMS. Find onboarding, priority support, and development of custom features. [Read more on our professional help page](https://decapcms.org/services/)