CN109901834B - Document page generation method, device, computer equipment and storage medium - Google Patents

Document page generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109901834B
CN109901834B CN201910072152.5A CN201910072152A CN109901834B CN 109901834 B CN109901834 B CN 109901834B CN 201910072152 A CN201910072152 A CN 201910072152A CN 109901834 B CN109901834 B CN 109901834B
Authority
CN
China
Prior art keywords
page
server
end page
description
information
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.)
Active
Application number
CN201910072152.5A
Other languages
Chinese (zh)
Other versions
CN109901834A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910072152.5A priority Critical patent/CN109901834B/en
Publication of CN109901834A publication Critical patent/CN109901834A/en
Application granted granted Critical
Publication of CN109901834B publication Critical patent/CN109901834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to research and development management, and provides a document page generation method, a document page generation device, computer equipment and a storage medium. The method comprises the following steps: receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information; acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information; and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information. By adopting the method, the development efficiency of the developer during development can be improved.

Description

Document page generation method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for generating a document page, a computer device, and a storage medium.
Background
Currently, front-end developers use compact (JavaScript library for building user interfaces, mainly for building interfaces) to develop front-end projects when performing front-end development. When the large-scale front-end project is developed, a service component is generally constructed through the reaction, so that the front-end codes are more easily reused, and the method can be better applied to the development of the large-scale front-end project. In building a business component, a developer usually writes a project description file, such as a readme.md file, in a project to describe the business component, so that the developer can use the business component conveniently. When a developer needs to use a service component in a history item, the developer needs to first search the readme.md file in the history item for the information of the related service component, and a large amount of time is wasted for searching due to poor readability of the file.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a document page generating method, apparatus, computer device, and storage medium that improve the readability of project notes files.
A document page generation method, the method comprising:
receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information;
Acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information;
and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
In one embodiment, downloading the description file in each front-end item from the server according to the description file acquisition instruction includes:
sending an instruction file acquisition request to a server, wherein the acquisition request carries a user identifier;
acquiring item identifiers and storage addresses of all front-end items searched by a server according to user identifiers;
sending a downloading request to a server corresponding to the storage address, wherein the downloading request carries an item identifier;
and acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification.
In one embodiment, obtaining front-end page element information returned by a server and obtained by rendering a front-end page, where the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanatory document page according to the front-end page element information includes:
Acquiring a preset configuration file, wherein the configuration file is used for configuring the subject skin of a document page, and analyzing the preset configuration file to obtain an analysis result;
and generating an explanation document page with the subject skin according to the analysis result and the front-end page element information.
In one embodiment, after obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes:
receiving an editing instruction for the example codes in the description document page, and converting the example codes in the description document page into an editable state according to the editing instruction;
and receiving a compiling instruction for the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result on the explanation document page.
In one embodiment, compiling the example code in the modified description document page according to the compiling instruction, displaying the compiling result in the description document page, includes:
and sending a rendering request to the server, wherein the rendering request carries the compiling result, acquiring the rendering result returned by the server, and displaying the rendering result on the explanation document page.
In one embodiment, after obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes:
receiving an update instruction for the description document page, and acquiring updated description files in each front-end item from a server according to the update instruction;
analyzing the description file in each updated front-end project to obtain an analysis result, obtaining updated project description information according to the analysis result, and displaying the updated project description information in the description document page.
In one embodiment, after obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes:
and receiving a project description information searching instruction, wherein the searching instruction carries a project identifier, searching project description information corresponding to the project identifier according to the project description information searching instruction, and displaying the searched project description information in a description document page.
A document page generating apparatus, the apparatus comprising:
the information obtaining module is used for receiving the instruction for obtaining the instruction, downloading the instruction files in the front-end projects from the server according to the instruction for obtaining the instruction files, and analyzing the instruction files to obtain project instruction information;
the rendering module is used for obtaining front-end page information according to the project description information, sending a front-end page rendering request to the server, wherein the front-end page rendering request carries the front-end page information, so that the server renders the front-end page according to the front-end page information;
the page generation module is used for acquiring front-end page element information which is returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and the description document page is generated according to the front-end page element information.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information;
Acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information;
and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information;
acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information;
and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
The method, the device, the computer equipment and the storage medium for generating the document page are characterized in that the instruction for acquiring the description file is received, the description file in each front-end project is downloaded from a server according to the instruction for acquiring the description file, and the description file is analyzed to obtain project description information; acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information; and acquiring front-end page element information obtained by the server through rendering the front-end page, wherein the front-end page element information is obtained by the server through rendering the front-end page, and generating an explanation document page according to the front-end page element information. By generating the description document page, a developer can directly search related project description information in the description document page when developing, the readability of the project description file is improved, the method is convenient and quick, and the development time of the developer is saved.
Drawings
FIG. 1 is an application scenario diagram of a method for generating a document page in one embodiment;
FIG. 2 is a flow diagram of a method of generating a document page in one embodiment;
FIG. 3 is a flow diagram of an embodiment for obtaining a description file;
FIG. 4 is a flow diagram of generating a topic skin page in one embodiment;
FIG. 5 is a flow diagram of editing example code in one embodiment;
FIG. 6 is a flow diagram of updating a document page in one embodiment;
FIG. 7 is a block diagram showing the structure of a document page generating apparatus according to one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The document page generation method provided by the application can be applied to an application environment shown in FIG. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 receives the instruction for acquiring the description file, downloads the description file in each front-end project from the server 104 according to the instruction for acquiring the description file, analyzes the description file, and obtains project description information; the terminal 102 obtains front-end page information according to the project description information, and sends a front-end page rendering request to the server 104, wherein the front-end page rendering request carries the front-end page information, so that the server 104 renders the front-end page according to the front-end page information; front-end page element information obtained by rendering the front-end page and returned by the server 104 is obtained by rendering the front-end page by the server 104, and the description document page is generated according to the front-end page element information. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a document page generating method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
s202, receiving the instruction for acquiring the description file, downloading the description file in each front-end project from the server according to the instruction for acquiring the description file, and analyzing the description file to obtain project description information.
The description file refers to a readme.md file in each front-end item, and the file is used for explaining the front-end item, and includes item description information of the front-end item, where the item description information specifically includes: API (Application Programming Interface), application programming interface) information, component information, example code and test code, and the like.
Specifically, the terminal receives an instruction for acquiring the description file of each front-end item, sends a description file downloading request to the server according to the instruction for acquiring the description file, the server searches the description file in the front-end item according to the downloading request, returns the description file to the terminal, downloads the description file in each front-end item from the server, and analyzes the description file to obtain item description information.
S204, obtaining front-end page information according to the project description information, and sending a front-end page rendering request to the server, wherein the front-end page rendering request carries the front-end page information, so that the server renders the front-end page according to the front-end page information.
The front page information refers to code information of the html (hypertext markup language) page to be generated, and the code information contains item description information in the page to be generated. The html page is used for displaying project description information.
Specifically, the terminal generates a front-end page code with the project description information through a preset html page code template according to the project description information, namely, the project description information is added into the preset html page code template to survive the front-end page code. And then the terminal sends a front-end page rendering request to the server, wherein the front-end page rendering request carries front-end page codes including front-end page information. When the server receives the front-end page rendering request, the rendering request is analyzed to obtain front-end page information, the front-end page information is rendered to obtain front-end page element information, and the front-end page element information is returned to the terminal.
S206, acquiring front-end page element information which is returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
The front page element information refers to a page DOM (Document Object Model ) element required for generating the front page.
Specifically, the terminal acquires a rendering result of the front-end page information returned by the server, obtains front-end page element information, draws the description document page according to the front-end page element information, and obtains the description document page when drawing is completed.
In the document page generation method, the instruction for acquiring the description file is received, the description file in each front-end project is downloaded from the server according to the instruction for acquiring the description file, and the description file is analyzed to obtain project description information; acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information; and acquiring front-end page element information obtained by the server through rendering the front-end page, wherein the front-end page element information is obtained by the server through rendering the front-end page, and generating an explanation document page according to the front-end page element information. By rendering the front-end page information in the server, the page rendering efficiency is improved. And then, by generating the description document page, a developer can directly search related project description information in the description document page, namely the html page when developing, and the html page is used for searching the project description information, so that the readability of the project description file is improved, the convenience and the rapidness are realized, the development time of the developer is saved, and the development efficiency can be improved.
In one embodiment, as shown in fig. 3, in step S202, that is, downloading the description file in each front-end item from the server according to the description file acquisition instruction, includes the steps of:
s302, an instruction file acquisition request is sent to a server, wherein the acquisition request carries a user identifier.
Wherein the user identification is used for uniquely identifying the user, which user comprises a developer, and the user identification may be a user ID (identification number), a user name, etc.
Specifically, the terminal sends a request for acquiring the description file to the server, the request for acquiring the description file carries a user identifier, the server receives the request for acquiring the description file, and analyzes the request to obtain the user identifier
S304, acquiring the item identification and the storage address of each front-end item searched by the server according to the user identification.
Wherein the item identification uniquely identifies the front-end item. The storage address refers to the server address of the item store. Each item identifier corresponds to a front-end item and has a corresponding storage address, and the storage addresses can be the same or different.
Specifically, the server searches the item identification of each front-end item and the storage address of each front-end item which can be searched by the user according to the user identification, and returns the item identification and the storage address to the terminal, and the terminal acquires the item identification and the storage address of each front-end item returned by the server.
S306, a download request is sent to a server corresponding to the storage address, wherein the download request carries the item identification.
Specifically, the terminal sends a description file downloading request to a corresponding server according to the storage address, the downloading request carries an item identifier, the server obtains the item identifier according to the description file downloading request, searches for a corresponding front-end item according to the item identifier, obtains a description file in the front-end item, and returns the description file to the terminal. Wherein the item identification can be multiple.
S308, acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification.
Specifically, the terminal acquires an explanation file returned by the server corresponding to the storage address. The number of the storage addresses may be plural, and the number of the obtained description files may be plural.
In the above embodiment, the description file obtaining request is sent to the server, where the obtaining request carries the user identifier, and the description file obtaining request is sent to the server, where the obtaining request carries the user identifier. And sending a downloading request to a server corresponding to the storage address, wherein the downloading request carries the item identifier. And acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification. The description file in the required front-end project can be downloaded from different servers, so that the page is convenient to generate.
In one embodiment, as shown in fig. 4, step S206, that is, obtaining front end page element information obtained by the server by rendering the front end page, where the front end page element information is obtained by the server by rendering the front end page, generates an explanatory document page according to the front end page element information, includes the steps of:
s402, acquiring a preset configuration file, wherein the configuration file is used for configuring the subject skin of the document page, and analyzing the preset configuration file to obtain an analysis result.
The topic skin refers to the structural attribute information of the page. May include page navigation structures, page styles, page colors, and the like.
Specifically, the terminal acquires a preset configuration file, wherein the configuration file is used for configuring the topic skin of the document page. And the terminal analyzes the configuration file to obtain the theme skin configured by the user.
S404, generating a description document page with the subject skin according to the analysis result and the front-end page element information.
Specifically, the terminal generates a description document page with a subject skin according to the analysis result and the front-end page element information.
In the above embodiment, a preset configuration file is obtained, the configuration file is used for configuring the topic skin of the topic document page, the preset configuration file is analyzed to obtain an analysis result, and the topic skin-carrying topic document page is generated according to the analysis result and the front-end page element information. The user can freely configure the theme skin through the configuration file, and user experience is improved.
In one embodiment, as shown in fig. 5, after step S206, that is, after obtaining front-end page element information obtained by rendering the front-end page and returned by the server, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes the steps of:
s502, receiving an editing instruction for the example codes in the description document page, and converting the example codes in the description document page into editable states according to the editing instruction.
Wherein an editable state refers to example code in the page being able to be modified.
Specifically, the terminal receives an edit instruction for the example code in the description document page, and converts the example code in the description document page into an editable state according to the edit instruction. For example, the user clicks the edit button corresponding to the example code, the terminal receives the edit instruction sent through the edit button, converts the corresponding example code into an editable state, and the user can modify the example code in the editable state.
S504, receiving a compiling instruction of the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result in the explanation document page.
Specifically, the terminal receives a compiling instruction for the example codes in the modified description document page, compiles the example codes in the modified description document page according to the compiling instruction, and displays the compiling result on the description document page. In one embodiment, the terminal may monitor the example code through a monitor, compile the modified example code when it is monitored that the example code is modified, and display the compilation result on the description document page.
In the above-described embodiment, by receiving an edit instruction for an example code in a description document page, the example code in the description document page is converted into an editable state according to the edit instruction. And receiving a compiling instruction for the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result on the explanation document page. The method and the device can enable the user to modify the example codes in the page, are convenient for the user to check the effect of the example codes in real time, and are convenient to use.
In one embodiment, step S504, that is, compiling the example code in the modified description document page according to the compiling instruction, displays the compiling result on the description document page, includes the steps of:
And sending a rendering request to the server, wherein the rendering request carries the compiling result, acquiring the rendering result returned by the server, and displaying the rendering result on the explanation document page.
Specifically, when the terminal compiles the modified example codes in the description document page, the compiling result is sent to the server for rendering. After the server renders the compiling result, the terminal obtains a rendering result, and the rendering result is displayed on the explanation document page. The rendering efficiency of the page can be improved through the rendering of the server.
In one embodiment, as shown in fig. 6, after step S206, after obtaining front-end page element information obtained by rendering the front-end page returned by the server, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes the steps of:
s602, receiving an update instruction for the description document page, and acquiring the description file in each updated front-end project from the server according to the update instruction.
Specifically, the terminal receives an update instruction for the description document page, acquires the item identifier and the storage address of each updated front-end item from the server according to the update instruction, and then sends a description file downloading request in the front-end item corresponding to the item identifier to the server corresponding to the storage address, and the server corresponding to the storage address returns the description file of the front-end item corresponding to the item identifier to the terminal. The terminal acquires the updated description files in each front-end item.
S604, analyzing the description file in each updated front-end project to obtain an analysis result, obtaining updated project description information according to the analysis result, and displaying the updated project description information in a description document page.
Specifically, the terminal analyzes the description file in each front-end item of the update to obtain an analysis result. And rendering and drawing the description document page according to the updated project description information obtained by the analysis result to obtain the updated description document page.
In the above embodiment, by receiving the update instruction for the description document page, acquiring the description file in each updated front-end item from the server according to the update instruction, analyzing the description file in each updated front-end item to obtain the analysis result, obtaining updated item description information according to the analysis result, and displaying the updated item description information in the description document page, the description document page can be updated in time, and the use is convenient.
In one embodiment, after step S206, that is, after obtaining the front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, the method further includes the steps of:
And receiving a project description information searching instruction, wherein the searching instruction carries a project identifier, searching project description information corresponding to the project identifier according to the project description information searching instruction, and displaying the searched project description information in a description document page.
Specifically, the terminal receives a project description information searching instruction, the searching instruction carries a project identifier, the project description information corresponding to the project identifier is searched according to the project description information searching instruction, and the searched project description information is displayed in a description document page. The terminal can directly jump to the project description information page corresponding to the project identifier, so that a user can conveniently search the project description information, and the user experience is improved.
It should be understood that, although the steps in the flowcharts of fig. 2-6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in FIG. 7, there is provided a document page generating apparatus 700 comprising: an information obtaining module 702, a rendering module 704, and a page generating module 706, wherein:
the information obtaining module 702 is configured to receive a description file obtaining instruction, download description files in each front-end project from the server according to the description file obtaining instruction, and analyze the description files to obtain project description information;
the rendering module 704 is configured to obtain front-end page information according to the item description information, send a front-end page rendering request to the server, where the front-end page rendering request carries the front-end page information, so that the server renders the front-end page according to the front-end page information;
the page generating module 706 is configured to obtain front-end page element information returned by the server and obtained by rendering the front-end page, where the front-end page element information is obtained by rendering the front-end page by the server, and generate an explanatory document page according to the front-end page element information.
In one embodiment, the information obtaining module 702 includes:
the request sending unit is used for sending an instruction file acquisition request to the server, wherein the acquisition request carries a user identifier;
the information acquisition unit is used for acquiring the item identification and the storage address of each front-end item searched by the server according to the user identification;
The download request sending unit is used for sending a download request to a server corresponding to the storage address, wherein the download request carries an item identifier;
the file acquisition unit is used for acquiring the description file returned by the server corresponding to the storage address, wherein the description file is in the front-end item corresponding to the item identification.
In one embodiment, the page generation module 706 includes:
the configuration acquisition unit is used for acquiring a preset configuration file, wherein the configuration file is used for configuring the topic skin of the document page, analyzing the preset configuration file and obtaining an analysis result;
and the topic page generating unit is used for generating an explanation document page with topic skin according to the analysis result and the front-end page element information.
In one embodiment, the document page generating apparatus 700 further includes:
the editing instruction receiving module is used for receiving an editing instruction for the example codes in the description document page, and converting the example codes in the description document page into an editable state according to the editing instruction;
and the compiling result display module is used for receiving a compiling instruction of the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result in the explanation document page.
In one embodiment, the compiling result display module includes:
and the result rendering unit is used for sending a rendering request to the server, wherein the rendering request carries a compiling result, acquiring a rendering result returned by the server and displaying the rendering result on the explanation document page.
In one embodiment, the document page generating apparatus 700 further includes:
the update instruction receiving module is used for receiving an update instruction for the description document page and acquiring updated description files in each front-end item from the server according to the update instruction;
and the updating module is used for analyzing the description files in the updated front-end projects to obtain analysis results, obtaining updated project description information according to the analysis results, and displaying the updated project description information in the description document page.
In one embodiment, the document page generating apparatus 700 further includes:
the searching module is used for receiving the project description information searching instruction, wherein the searching instruction carries the project identification, searching the project description information corresponding to the project identification according to the project description information searching instruction, and displaying the searched project description information in the description document page.
For the specific definition of the document page generating apparatus, reference may be made to the definition of the document page generating method hereinabove, and the description thereof will not be repeated. The respective modules in the document page generating apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a document page generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information; acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information; and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
In one embodiment, the processor when executing the computer program further performs the steps of: sending an instruction file acquisition request to a server, wherein the acquisition request carries a user identifier; acquiring item identifiers and storage addresses of all front-end items searched by a server according to user identifiers; sending a downloading request to a server corresponding to the storage address, wherein the downloading request carries an item identifier; and acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a preset configuration file, wherein the configuration file is used for configuring the subject skin of a document page, and analyzing the preset configuration file to obtain an analysis result; and generating an explanation document page with the subject skin according to the analysis result and the front-end page element information.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving an editing instruction for the example codes in the description document page, and converting the example codes in the description document page into an editable state according to the editing instruction; and receiving a compiling instruction for the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result on the explanation document page.
In one embodiment, the processor when executing the computer program further performs the steps of: and sending a rendering request to the server, wherein the rendering request carries the compiling result, acquiring the rendering result returned by the server, and displaying the rendering result on the explanation document page.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving an update instruction for the description document page, and acquiring updated description files in each front-end item from a server according to the update instruction; analyzing the description file in each updated front-end project to obtain an analysis result, obtaining updated project description information according to the analysis result, and displaying the updated project description information in the description document page.
In one embodiment, the processor when executing the computer program further performs the steps of: and receiving a project description information searching instruction, wherein the searching instruction carries a project identifier, searching project description information corresponding to the project identifier according to the project description information searching instruction, and displaying the searched project description information in a description document page.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information; acquiring front-end page information according to the project description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information; and acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending an instruction file acquisition request to a server, wherein the acquisition request carries a user identifier; acquiring item identifiers and storage addresses of all front-end items searched by a server according to user identifiers; sending a downloading request to a server corresponding to the storage address, wherein the downloading request carries an item identifier; and acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a preset configuration file, wherein the configuration file is used for configuring the subject skin of a document page, and analyzing the preset configuration file to obtain an analysis result; and generating an explanation document page with the subject skin according to the analysis result and the front-end page element information.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an editing instruction for the example codes in the description document page, and converting the example codes in the description document page into an editable state according to the editing instruction; and receiving a compiling instruction for the example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying the compiling result on the explanation document page.
In one embodiment, the computer program when executed by the processor further performs the steps of: and sending a rendering request to the server, wherein the rendering request carries the compiling result, acquiring the rendering result returned by the server, and displaying the rendering result on the explanation document page.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an update instruction for the description document page, and acquiring updated description files in each front-end item from a server according to the update instruction; analyzing the description file in each updated front-end project to obtain an analysis result, obtaining updated project description information according to the analysis result, and displaying the updated project description information in the description document page.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving a project description information searching instruction, wherein the searching instruction carries a project identifier, searching project description information corresponding to the project identifier according to the project description information searching instruction, and displaying the searched project description information in a description document page.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A document page generation method, the method comprising:
receiving a description file acquisition instruction, downloading description files in each front-end project from a server according to the description file acquisition instruction, and analyzing the description files to obtain project description information;
acquiring front-end page information according to the item description information, and sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information so that the server renders the front-end page according to the front-end page information;
And acquiring front-end page element information returned by the server and obtained by rendering the front-end page, wherein the front-end page element information is obtained by rendering the front-end page by the server, and generating an explanation document page according to the front-end page element information.
2. The method of claim 1, wherein downloading the description file in each front-end item from the server according to the description file acquisition instruction comprises:
sending an instruction file acquisition request to the server, wherein the acquisition request carries a user identifier;
acquiring item identifiers and storage addresses of all front-end items searched by the server according to the user identifiers;
sending a downloading request to a server corresponding to the storage address, wherein the downloading request carries the item identifier;
and acquiring an explanation file returned by the server corresponding to the storage address, wherein the explanation file is in a front-end item corresponding to the item identification.
3. The method according to claim 1, wherein obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information being obtained by rendering the front-end page by the server, generating an explanatory document page according to the front-end page element information, includes:
Acquiring a preset configuration file, wherein the configuration file is used for configuring the subject skin of the text file page, and analyzing the preset configuration file to obtain an analysis result;
and generating a description document page with the theme skin according to the analysis result and the front-end page element information.
4. The method according to claim 1, wherein after the obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, generating an explanatory document page according to the front-end page element information, the method further includes:
receiving an editing instruction for example codes in the text file page, and converting the example codes in the text file page into an editable state according to the editing instruction;
and receiving a compiling instruction for example codes in the modified explanation document page, compiling the example codes in the modified explanation document page according to the compiling instruction, and displaying a compiling result in the explanation document page.
5. The method of claim 4, wherein compiling the example code in the modified document page according to the compiling instruction, displaying the compiling result in the document page, comprises:
And sending a rendering request to the server, wherein the rendering request carries a compiling result, acquiring a rendering result returned by the server, and displaying the rendering result on the text file page.
6. The method according to claim 1, wherein the obtaining front-end page element information returned by the server and obtained by rendering the front-end page, where the front-end page element information is obtained by rendering the front-end page by the server, and after generating the description document page according to the front-end page element information, further includes:
receiving an update instruction for the description file page, and acquiring the description file in each updated front-end item from a server according to the update instruction;
analyzing the description file in each updated front-end project to obtain an analysis result, obtaining updated project description information according to the analysis result, and displaying the updated project description information in the description document page.
7. The method according to claim 1, wherein after the obtaining front-end page element information returned by the server and obtained by rendering the front-end page, the front-end page element information is obtained by rendering the front-end page by the server, generating an explanatory document page according to the front-end page element information, the method further includes:
And receiving a project description information searching instruction, wherein the searching instruction carries a project identifier, searching project description information corresponding to the project identifier according to the project description information searching instruction, and displaying the searched project description information in a description document page.
8. A document page generating apparatus, the apparatus comprising:
the information obtaining module is used for receiving the instruction for obtaining the description file, downloading the description file in each front-end project from the server according to the instruction for obtaining the description file, and analyzing the description file to obtain project description information;
the rendering module is used for obtaining front-end page information according to the project description information, sending a front-end page rendering request to a server, wherein the front-end page rendering request carries the front-end page information, so that the server renders the front-end page according to the front-end page information;
the page generation module is used for acquiring front-end page element information obtained by rendering the front-end page and returned by the server, wherein the front-end page element information is obtained by rendering the front-end page by the server, and the description document page is generated according to the front-end page element information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN201910072152.5A 2019-01-25 2019-01-25 Document page generation method, device, computer equipment and storage medium Active CN109901834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910072152.5A CN109901834B (en) 2019-01-25 2019-01-25 Document page generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910072152.5A CN109901834B (en) 2019-01-25 2019-01-25 Document page generation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109901834A CN109901834A (en) 2019-06-18
CN109901834B true CN109901834B (en) 2023-12-26

Family

ID=66944045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910072152.5A Active CN109901834B (en) 2019-01-25 2019-01-25 Document page generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109901834B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362308A (en) * 2019-06-20 2019-10-22 平安科技(深圳)有限公司 Page generation method, device, computer equipment and storage medium
CN110597511B (en) * 2019-08-19 2023-05-02 深圳手回科技集团有限公司 Page automatic generation method, system, terminal equipment and storage medium
CN111046309A (en) * 2019-12-11 2020-04-21 政采云有限公司 Page view rendering method, device and equipment and readable storage medium
CN111045655B (en) * 2019-12-18 2023-04-14 广州市百果园信息技术有限公司 Page rendering method and device, rendering server and storage medium
CN111177621B (en) * 2019-12-23 2024-03-08 北京达佳互联信息技术有限公司 Web page development method, device and system
CN111221558A (en) * 2020-03-04 2020-06-02 南京华飞数据技术有限公司 Semi-automatic resource updating method and system
CN112287255B (en) * 2020-07-13 2024-02-09 上海柯林布瑞信息技术有限公司 Page construction method and device, computing equipment and computer readable storage medium
CN112182201A (en) * 2020-11-10 2021-01-05 平安普惠企业管理有限公司 Rich text report generation method and device, computer equipment and storage medium
CN113760252A (en) * 2020-11-16 2021-12-07 北京沃东天骏信息技术有限公司 Data visualization method, device, computer system and readable storage medium
CN112817915A (en) * 2021-02-01 2021-05-18 浪潮云信息技术股份公司 Automatic multi-product document uniform publishing and displaying method
CN113419711A (en) * 2021-06-28 2021-09-21 挂号网(杭州)科技有限公司 Page guiding method and device, electronic equipment and storage medium
CN115665120B (en) * 2022-12-28 2023-03-21 浙江华东工程数字技术有限公司 Cloud CAD processing method and system, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215519A (en) * 2001-01-22 2002-08-02 Sumisho Computer Systems Corp Method and system for web page generation, web page generating program, and recording medium
US8595718B1 (en) * 2007-08-17 2013-11-26 Oracle America, Inc. Method and system for generating a knowledge package
CN105094836A (en) * 2015-08-11 2015-11-25 北京京东尚科信息技术有限公司 Method and device for generating description document
CN108920147A (en) * 2018-06-11 2018-11-30 京信通信系统(中国)有限公司 A kind of Web page construction method, calculates equipment and storage medium at device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215519A (en) * 2001-01-22 2002-08-02 Sumisho Computer Systems Corp Method and system for web page generation, web page generating program, and recording medium
US8595718B1 (en) * 2007-08-17 2013-11-26 Oracle America, Inc. Method and system for generating a knowledge package
CN105094836A (en) * 2015-08-11 2015-11-25 北京京东尚科信息技术有限公司 Method and device for generating description document
CN108920147A (en) * 2018-06-11 2018-11-30 京信通信系统(中国)有限公司 A kind of Web page construction method, calculates equipment and storage medium at device

Also Published As

Publication number Publication date
CN109901834A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN108287694B (en) Application program construction method, system, computer device and storage medium
CN110647320A (en) Project framework construction method and device, computer equipment and storage medium
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN111459495B (en) Unit test code file generation method, electronic device and storage medium
CN112596714A (en) Webpage development method, device, terminal, server and storage medium
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
CN112486828A (en) Test case generation method and device, computer equipment and storage medium
CN111045707B (en) Method, apparatus, computer device and storage medium for updating applet
CN110597552B (en) Configuration method, device, equipment and storage medium of project continuous integrated pipeline
CN111158777B (en) Component calling method, device and computer readable storage medium
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN111736812A (en) Document code execution method and device, computer equipment and storage medium
CN114253537A (en) Form generation method and device, electronic equipment and storage medium
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN112162743A (en) Driver generation method, device, computer equipment and storage medium
JP2012133567A (en) Information processor, control method thereof, and program
CN112417020A (en) Method and device for realizing service expansion, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
JP6551082B2 (en) Test support apparatus, test support method, and test support program
CN111158695B (en) Interface positioning method, device, computer equipment and storage medium
CN114996117B (en) Client GPU application evaluation system and method for SaaS mode

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
GR01 Patent grant
GR01 Patent grant