CN109299050A - Enterprise-level documentation center implementation method based on git - Google Patents

Enterprise-level documentation center implementation method based on git Download PDF

Info

Publication number
CN109299050A
CN109299050A CN201811384902.4A CN201811384902A CN109299050A CN 109299050 A CN109299050 A CN 109299050A CN 201811384902 A CN201811384902 A CN 201811384902A CN 109299050 A CN109299050 A CN 109299050A
Authority
CN
China
Prior art keywords
document
git
enterprise
documentation
engineering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811384902.4A
Other languages
Chinese (zh)
Inventor
李伟
刘强
彭世伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Homwee Technology Co ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201811384902.4A priority Critical patent/CN109299050A/en
Publication of CN109299050A publication Critical patent/CN109299050A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to document management fields, disclose a kind of enterprise-level documentation center implementation method based on git, to improve safety, easily-controllable property and the real-time of enterprise-level technical documentation.First the heart creates document engineering to the present invention in a document, and is document engineering configuration documentation information;After the creation of document engineering, the heart generates the address webhook for triggering document-synchronization in a document, and by the webhook address configuration to the warehouse git, then ssh public key is configured to the deploykey in the warehouse git;When triggering synchronous document function again, ssh effect is carried out, documentation center pulls the document source code of markdown format from the warehouse git according to the address git and git branch after effect success;The document source code of markdown format is finally converted to the document source code of html format, and database is written.The present invention is suitable for enterprise-level document management.

Description

Enterprise-level documentation center implementation method based on git
Technical field
The present invention relates to document management fields, in particular to the enterprise-level documentation center implementation method based on git.
Background technique
As project participates in increasing for number, the importance of technical documentation is further prominent, to maintainability, real-time, peace The requirement of full property is also higher and higher.Also, most of technical documentation belongs to non-public file, needs effective authority managing and controlling.One A unified documentation center at technical documentation information flow key node.
Summary of the invention
The technical problem to be solved by the present invention is a kind of enterprise-level documentation center implementation method based on git is provided, to Improve safety, easily-controllable property and the real-time of enterprise-level technical documentation.
To solve the above problems, the technical solution adopted by the present invention is that: the enterprise-level documentation center realization side based on git Method includes the following steps:
Step 1, the in a document heart create document engineering, and are document engineering configuration documentation information;Document engineering creates it Afterwards, the heart generates the address webhook for triggering document-synchronization in a document, and by the webhook address configuration to the storehouse git Library, then ssh public key is configured to the deploykey in the warehouse git;
Step 2, when documentation center calls the address webhook to trigger synchronous document function, carry out ssh effect, i.e. document Center verifies the deploykey of the ssh private key that document engineering configures and corresponding password and the warehouse git, if effect success, 3 are then entered step, is otherwise terminated;
Step 3, documentation center pull the document source of markdown format from the warehouse git according to the address git and git branch Code;
Step 4, the document source code that the document source code of markdown format is converted to html format, and database is written.
Further, in order to realize effective authority managing and controlling, the present invention can also include step 5: the use that needs are authorized Authorized user's table is added in the account at family, verify user it is effective after, complete the authorization to the user.
Specifically, step 1 configuration documentation information may include: document engineering name, the address document engineering git, git branch, The public and private key of ssh and corresponding password.
Further, a ssh effect is needed to be implemented before triggering document-synchronization, to guarantee that the creation of document engineering is accurate.
The beneficial effects of the present invention are: advantage of the present invention by means of git, automatically from the synchronous document content in the warehouse git, no It needs to separately maintain documentation center, ensure that the safety of document by ssh, document is limited in by classification authorization check and is awarded It weighs in range, improves safety, the easily-controllable property, real-time of enterprise-level technical documentation, facilitate the maintenance of enterprise-level technical documentation With shared, reduction communication cost.
Detailed description of the invention
Fig. 1 is the flow chart of embodiment.
Fig. 2 is the collaboration diagram that embodiment executes.
Specific embodiment
A kind of enterprise-level documentation center implementation method based on git disclosed by the invention, safety based on git and easily-controllable Property, by means of markdown ease for maintenance, by the maintenance of technical documentation and using decoupling, it is further added by rights management, is realized efficient Enterprise-level documentation center.After document maintenance personnel updates document in the warehouse git, pass through webhook automatic trigger documentation center Update operation.Then documentation center obtains the document content of newest markdown format from the warehouse git, is translated into Documentation center displayed page is loaded into after html format.The heart checks the newest of specific document to user by authorization in a document Version.
Embodiment
Embodiment provides a kind of enterprise-level documentation center implementation method based on git, referring to figs. 1 and 2, embodiment It can specifically include following steps:
Step 101, creation document engineering.
The heart creates document engineering in a document, and is document engineering configuration documentation information, wherein configuration documentation information can be with It include: document engineering name, the address document engineering git, git branch, the public and private key of ssh and corresponding password.After the creation of document engineering, The heart generates the address webhook for triggering document-synchronization in a document, and by the webhook address configuration to the warehouse git, then Ssh public key is configured to the deploykey in the warehouse git.
Step 102, ssh effect.
To guarantee that configuration is accurate, step 1 needs to be implemented once after ssh public key to be configured to the deploykey in the warehouse git The deploykey of the ssh private key that document engineering configures and corresponding password and the warehouse git is done school by ssh effect, i.e. documentation center It tests.
When documentation center calls the address webhook to trigger synchronous document function, ssh effect is carried out, i.e. documentation center will The deploykey of the ssh private key of document engineering configuration and corresponding password and the warehouse git is verified, if effect success, enters Step 103, otherwise illustrate that the request is unreliable, process terminates.
Step 103 obtains document source code from the warehouse git.
Documentation center pulls the document source code of markdown format from the warehouse git according to the address git and git branch.
Step 104, format transformation simultaneously save.
The document source code of markdown format is converted to the document source code of html format, and database is written, since then, text Shelves information flow success flow to documentation center from the warehouse git, completes a document-synchronization operation.
Step 105, authorization.
Authorized user's table is added in the account of user for needing to authorize, verify user it is effective after, the user is awarded in completion Power.Authorization is divided into developer's authorization and checks authorization, and the user of developer's authorization can modify, check the document engineering, checks The user of authorization can only check.Authorization is executed by the master of document items, and authorization is added in the account for the user for needing to authorize User's table, verify user it is effective after, complete authorization to the user.
User after authorization, so that it may check the document in institute's authority levels.
Authority classification is as follows:
(1), the common permission of default: 0
(2), visitor's permission: 1, it can only check;
(3), developer's permission: 2, it can check, document information introduction can be modified;
(4), owner's permission: 3, document engineering founder can check, modifies, delete;
(5), administrator right: 8, possess all permissions in addition to modifying administrator;
(6), super keepe permission: 9, highest permission.

Claims (4)

1. the enterprise-level documentation center implementation method based on git, which comprises the steps of:
Step 1, the in a document heart create document engineering, and are document engineering configuration documentation information;After the creation of document engineering, Documentation center generates the address webhook for triggering document-synchronization, and by the webhook address configuration to the warehouse git, then will Ssh public key is configured to the deploykey in the warehouse git;
Step 2, when documentation center calls the address webhook to trigger synchronous document function, carry out ssh effect, i.e. documentation center The deploykey of ssh private key and corresponding password and the warehouse git that document engineering configures is verified, if effect success, into Enter step 3, otherwise terminates;
Step 3, documentation center pull the document source code of markdown format from the warehouse git according to the address git and git branch;
Step 4, the document source code that the document source code of markdown format is converted to html format, and database is written.
2. the enterprise-level documentation center implementation method based on git as described in claim 1, which is characterized in that further include step 5: authorized user's table is added in the account of user for needing to authorize, verify user it is effective after, complete the authorization to the user.
3. the enterprise-level documentation center implementation method based on git as described in claim 1, which is characterized in that step 1 configures text Shelves information includes: document engineering name, the address document engineering git, git branch, the public and private key of ssh and corresponding password.
4. the enterprise-level documentation center implementation method based on git as described in claim 1, which is characterized in that triggering document is same A ssh effect is needed to be implemented before step.
CN201811384902.4A 2018-11-20 2018-11-20 Enterprise-level documentation center implementation method based on git Pending CN109299050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811384902.4A CN109299050A (en) 2018-11-20 2018-11-20 Enterprise-level documentation center implementation method based on git

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811384902.4A CN109299050A (en) 2018-11-20 2018-11-20 Enterprise-level documentation center implementation method based on git

Publications (1)

Publication Number Publication Date
CN109299050A true CN109299050A (en) 2019-02-01

Family

ID=65143906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811384902.4A Pending CN109299050A (en) 2018-11-20 2018-11-20 Enterprise-level documentation center implementation method based on git

Country Status (1)

Country Link
CN (1) CN109299050A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782911A (en) * 2020-07-24 2020-10-16 三一重能有限公司 Document management method and system and electronic equipment
CN112905227A (en) * 2021-02-09 2021-06-04 中国工商银行股份有限公司 Open source software version registration method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461743A (en) * 2014-12-17 2015-03-25 用友软件股份有限公司 Device and method for automatically generating resources and configuration
CN107480234A (en) * 2017-08-07 2017-12-15 四川长虹电器股份有限公司 A kind of enterprise-level documentation center implementation method based on git

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461743A (en) * 2014-12-17 2015-03-25 用友软件股份有限公司 Device and method for automatically generating resources and configuration
CN107480234A (en) * 2017-08-07 2017-12-15 四川长虹电器股份有限公司 A kind of enterprise-level documentation center implementation method based on git

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782911A (en) * 2020-07-24 2020-10-16 三一重能有限公司 Document management method and system and electronic equipment
CN112905227A (en) * 2021-02-09 2021-06-04 中国工商银行股份有限公司 Open source software version registration method and device

Similar Documents

Publication Publication Date Title
CN100495422C (en) Controlling method of business operations authority
CN112559627B (en) Method for sharing electronic medical record data in cooperation with each other on chain and under chain based on alliance chain
CN107507005A (en) Data access method and system outside a kind of chain based on alliance's chain
CN107480234B (en) Git-based enterprise-level document center implementation method
CN110188573B (en) Partition authorization method, partition authorization device, partition authorization equipment and computer readable storage medium
CN106506521A (en) resource access control method and device
CN105389870A (en) Entrance guard management method and system
CN103455325A (en) Business-model-based architecture platform
CN108959902A (en) A kind of mutli-system integration platform and method, computer readable storage medium
CN109933310A (en) A kind of configurable JAVA development platform based on data template
CN107392053A (en) A kind of data permission control method in enterprise staff information database
CN108509807A (en) A kind of the table data authority control system and method for based role
WO2019011304A1 (en) Role acquisition-based method for authorizing form data
CN109299050A (en) Enterprise-level documentation center implementation method based on git
CN101771698A (en) Grid visit control method based on extendible markup language security policy
CN107426134A (en) A kind of access control method based on relation
CN106534202A (en) Permission processing method and device
CN104580081A (en) Integrated SSO (single sign on) system
US20240007458A1 (en) Computer user credentialing and verification system
CN104915412A (en) Method and system for connecting dynamic management database
CN103020497A (en) RBAC (Role-Based Access Control) model based temporary authorizing system
CN104994086B (en) A kind of control method and device of data-base cluster permission
CN110992005B (en) Method and system for realizing data authority control processing in big data application
CN103136620A (en) Method for achieving project management system permission authorization
CN102331925A (en) Fast software development platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200114

Address after: 610041 33 / F, building 1, No.199, Tianfu 4th Street, hi tech Zone, Chengdu, Sichuan Province

Applicant after: Homwee Technology Co.,Ltd.

Address before: 621000 Mianyang province high tech Zone, East Hing Road, No. 35 cotton

Applicant before: SICHUAN CHANGHONG ELECTRIC Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201