CN109901834A - Document file page generation method, device, computer equipment and storage medium - Google Patents
Document file page generation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109901834A CN109901834A CN201910072152.5A CN201910072152A CN109901834A CN 109901834 A CN109901834 A CN 109901834A CN 201910072152 A CN201910072152 A CN 201910072152A CN 109901834 A CN109901834 A CN 109901834A
- Authority
- CN
- China
- Prior art keywords
- page
- end page
- server
- project
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000009877 rendering Methods 0.000 claims abstract description 48
- 238000004590 computer program Methods 0.000 claims description 28
- 238000011161 development Methods 0.000 abstract description 5
- 238000012827 research and development Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
This application involves research and development to manage, and provides a kind of document file page generation method, device, computer equipment and storage medium.The described method includes: receiving supporting paper acquisition instruction, the supporting paper in each front end project is downloaded from server according to supporting paper acquisition instruction, supporting paper is parsed, obtains project description information;Front end page information is obtained according to project description information, sends front end page render request to server, front end page render request carries front end page information, so that server renders front end page according to front end page information;The front end page element information rendered to front end page that server returns is obtained, front end page element information is that server rendering front end page obtains, and illustrates document file page according to the generation of front end page element information.Development efficiency of the developer in exploitation can be improved using this method.
Description
Technical field
This application involves field of computer technology, set more particularly to a kind of document file page generation method, device, computer
Standby and storage medium.
Background technique
Currently, front end developer is when carrying out front end exploitation, using React (for constructing user interface
The library JavaScript, be mainly used for construct interface) front end Lai Jinhang project exploitation.In large-scale front end project development, usually
Service Component is constructed by react, so that front-end code is more readily available multiplexing, can preferably apply in large-scale front end project
Exploitation in.A project description file will be write in the project carrying out the building usual developer of Service Component, such as
Readme.md file, for being illustrated to the Service Component, facilitate late comer carry out using.When developer need using
When Service Component in history item, it will first go to search related service component in the readme.md file in the history item
Information, since readability very poor time that can waste a large amount of developers of this document goes to search.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of readable document for improving project description file
Page generation method, device, computer equipment and storage medium.
A kind of document file page generation method, which comprises
Supporting paper acquisition instruction is received, is downloaded in each front end project according to supporting paper acquisition instruction from server
Supporting paper parses supporting paper, obtains project description information;
Front end page information is obtained according to project description information, sends front end page render request, preceding end page to server
Face render request carries front end page information, so that server renders front end page according to front end page information;
Obtain the front end page element information rendered to front end page that server returns, front end page element information
It is that server rendering front end page obtains, document file page is illustrated according to the generation of front end page element information.
Froming the perspective of in each front end project is downloaded from server according to supporting paper acquisition instruction in one of the embodiments,
Prescribed paper, comprising:
Supporting paper acquisition request is sent to server, acquisition request carries user identifier;
Obtain the project label and storage address of each front end project that server is found according to user identifier;
Downloading request is sent to the corresponding server of storage address, downloading request carries project label;
The supporting paper that the corresponding server of storage address returns is obtained, supporting paper is the corresponding front end of project label
In mesh.
The front end page element letter rendered to front end page that server returns is obtained in one of the embodiments,
Breath, front end page element information are that server rendering front end page obtains, and generate expository writing according to front end page element information
The shelves page, comprising:
Preset configuration file is obtained, configuration file is used for the theme skin of configuration instruction document file page, parses preset configuration
File obtains parsing result;
It is generated according to parsing result and front end page element information and illustrates document file page with theme skin.
In one of the embodiments, in the front end page element rendered to front end page for obtaining server return
Information, front end page element information are that server rendering front end page obtains, and generate explanation according to front end page element information
After document file page, further includes:
It receives to the edit instruction for illustrating code sample in document file page, will illustrate to show in document file page according to edit instruction
Example code conversion is editable state;
It receives and the modified compiling for illustrating code sample in document file page is instructed, after compiling compiling of instruction modification
Illustrate code sample in document file page, compiling result is being illustrated that document file page shows.
Illustrate code sample in document file page according to compiling compiling of instruction is modified in one of the embodiments, it will
Compiling result is illustrating that document file page shows, comprising:
Render request is sent to server, render request carries the rendering result compiled as a result, acquisition server returns, will
Rendering result is illustrating that document file page shows.
In one of the embodiments, in the front end page element rendered to front end page for obtaining server return
Information, front end page element information are that server rendering front end page obtains, and generate explanation according to front end page element information
After document file page, further includes:
It receives to the more new command for illustrating document file page, obtains each front end updated from server according to more new command
Supporting paper in mesh;
The supporting paper in each front end project updated is parsed, parsing result is obtained, is updated according to parsing result
Project description information, the project description information of update is shown in illustrating document file page.
In one of the embodiments, in the front end page element rendered to front end page for obtaining server return
Information, front end page element information are that server rendering front end page obtains, and generate explanation according to front end page element information
After document file page, further includes:
The instruction of project description information searching is received, look-up command carries project label, according to project description information searching
The corresponding project description information of project label is searched in instruction, and the project description information found is shown in illustrating document file page
Show.
A kind of document file page generating means, described device include:
Information obtains module, for receiving supporting paper acquisition instruction, according to supporting paper acquisition instruction under server
The supporting paper in each front end project is carried, supporting paper is parsed, obtains project description information;
Rendering module sends front end page wash with watercolours to server for obtaining front end page information according to project description information
Dye request, front end page render request carries front end page information, so that server is according to front end page information to preceding end page
Face rendering;
Page generation module, for obtaining the front end page element letter of server return rendered to front end page
Breath, front end page element information are that server rendering front end page obtains, and generate expository writing according to front end page element information
The shelves page.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Supporting paper acquisition instruction is received, is downloaded in each front end project according to supporting paper acquisition instruction from server
Supporting paper parses supporting paper, obtains project description information;
Front end page information is obtained according to project description information, sends front end page render request, preceding end page to server
Face render request carries front end page information, so that server renders front end page according to front end page information;
Obtain the front end page element information rendered to front end page that server returns, front end page element information
It is that server rendering front end page obtains, document file page is illustrated according to the generation of front end page element information.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Supporting paper acquisition instruction is received, is downloaded in each front end project according to supporting paper acquisition instruction from server
Supporting paper parses supporting paper, obtains project description information;
Front end page information is obtained according to project description information, sends front end page render request, preceding end page to server
Face render request carries front end page information, so that server renders front end page according to front end page information;
Obtain the front end page element information rendered to front end page that server returns, front end page element information
It is that server rendering front end page obtains, document file page is illustrated according to the generation of front end page element information.
Above-mentioned document file page generation method, device, computer equipment and storage medium are referred to by receiving supporting paper acquisition
It enables, the supporting paper in each front end project is downloaded from server according to supporting paper acquisition instruction, supporting paper is parsed, obtains
Project description information;Front end page information is obtained according to project description information, sends front end page render request to server, it is preceding
End page face render request carries front end page information, so that server renders front end page according to front end page information;It obtains
Server is taken to return to the front end page element information rendered to front end page, front end page element information is server wash with watercolours
Dye front end page obtains, and illustrates document file page according to the generation of front end page element information.Illustrate document file page by generating, makes
Developer can search relevant item directly in illustrating document file page and illustrate information, improve project when developing
The readability of supporting paper, it is convenient and efficient, save the development time of developer.
Detailed description of the invention
Fig. 1 is the application scenario diagram of document page generation method in one embodiment;
Fig. 2 is the flow diagram of document page generation method in one embodiment;
Fig. 3 is the flow diagram that supporting paper is obtained in one embodiment;
Fig. 4 is the flow diagram that the theme skin page is generated in one embodiment;
Fig. 5 is the flow diagram that code sample is edited in one embodiment;
Fig. 6 is the flow diagram that document file page is updated in one embodiment;
Fig. 7 is the structural block diagram of document webpage generating device in one embodiment;
Fig. 8 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Document file page generation method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually
End 102 is communicated by network with server 104.Terminal 102 receives supporting paper acquisition instruction, is obtained according to supporting paper
Instruction downloads the supporting paper in each front end project from server 104, parses supporting paper, obtains project description information;Eventually
End 102 obtains front end page information according to project description information, sends front end page render request, preceding end page to server 104
Face render request carries front end page information, so that server 104 renders front end page according to front end page information;It obtains
The front end page element information rendered to front end page that server 104 returns, front end page element information is server
What 104 rendering front end pages obtained, document file page is illustrated according to the generation of front end page element information.Wherein, terminal 102 can with but
It is not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device, server
104 can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of document file page generation method, it is applied to Fig. 1 in this way
In terminal for be illustrated, comprising the following steps:
S202 receives supporting paper acquisition instruction, downloads each front end from server according to supporting paper acquisition instruction
Supporting paper in mesh parses supporting paper, obtains project description information.
Wherein, supporting paper refers to that the readme.md file in each front end project, this document are used for the front end
Mesh is explained, and the project description information including the front end project, the project description information specifically includes: API
(Application Programming Interface, application programming interface) information, module information, code sample and
Test code etc..
Specifically, terminal receives the acquisition instruction of each front end project description file, referred to according to supporting paper acquisition
It enables to server and sends supporting paper downloading request, server finds the expository writing in the project of front end according to downloading request
Supporting paper is returned to terminal by part, and terminal downloads to the supporting paper in each front end project from server, parses the explanation
File obtains project description information.
S204 obtains front end page information according to project description information, sends front end page render request to server, preceding
End page face render request carries front end page information, so that server renders front end page according to front end page information.
Wherein, front end page information refers to the code information of html (hypertext markup language) page of generation, the code
The project description information in the page to be generated just is contained in information.The html page is for showing project description information.
Specifically, terminal is believed by default html page code template generation with the project description according to project description information
Project description information is added in default html page code template the front end page generation of surviving by the front end page code of breath
Code.Then terminal to server sends front end page render request, carries front end page generation in the front end page render request
Code includes front end page information.When server receives the front end page render request, the render request is parsed, front end is obtained
Page info, and the front end page information is rendered, front end page element information is obtained, and front end page element letter is returned
Return terminal.
S206 obtains the front end page element information rendered to front end page that server returns, front end page member
Prime information is that server rendering front end page obtains, and illustrates document file page according to the generation of front end page element information.
Wherein, front end page element information refers to page DOM (Document Object required for generating front end page
Model, DOM Document Object Model) element.
Specifically, terminal gets the rendering result to front end page information of server return, front end page member is obtained
Prime information, terminal illustrate document file page according to the drafting of front end page element information, when completing, obtain illustrating document file page.
In above-mentioned document file page generation method, by receiving supporting paper acquisition instruction, according to supporting paper acquisition instruction
The supporting paper in each front end project is downloaded from server, supporting paper is parsed, obtains project description information;It is said according to project
Bright information obtains front end page information, front end page render request is sent to server, before front end page render request carries
Page info is held, so that server renders front end page according to front end page information;Server is obtained to return to front end page
Obtained front end page element information is rendered, front end page element information is that server rendering front end page obtains, according to
The generation of front end page element information illustrates document file page.By rendering front end page information in the server, page wash with watercolours is improved
Contaminate efficiency.Then illustrate document file page by generating, make developer when developing, directly can illustrate documentation page
Relevant item is searched in face, that is, the html page and illustrates information, is searched project description information using the html page, is improved item
The readability of mesh supporting paper, it is convenient and efficient, the development time of developer is saved, can be improved development efficiency.
In one embodiment, as shown in figure 3, in step S202, i.e., according to supporting paper acquisition instruction under server
The supporting paper in each front end project is carried, comprising steps of
S302 sends supporting paper acquisition request to server, and acquisition request carries user identifier.
Wherein, user identifier is used for unique identification user, which includes developer, which can be user
ID (identity number), user's name etc..
Specifically, terminal to server sends supporting paper acquisition request, user identifier is carried in the acquisition request, is taken
Business device receives the supporting paper acquisition request, parses the request, obtains the user identifier
S304 obtains the project label and storage address of each front end project that server is found according to user identifier.
Wherein, project label unique identification front end project.Storage address refers to the server address of project storage.It is each
The corresponding front end project of a project label has corresponding storage address, which may be the same or different.
Specifically, server finds the item target for each front end project that the user can be searched according to user identifier
Know the storage address with each front end project, and project label and storage address are returned into terminal, terminal gets server
The project label and storage address of each front end project returned.
S306 sends downloading request to the corresponding server of storage address, and downloading request carries project label.
Specifically, terminal sends supporting paper downloading request to corresponding server according to the storage address, which asks
Project label is carried in asking, server obtains project label according to supporting paper downloading request, searches according to project label
To corresponding front end project, the supporting paper in the project of front end is got, and supporting paper is returned into terminal.Wherein, this
Target knowledge can have multiple.
S308 obtains the supporting paper that the corresponding server of storage address returns, and supporting paper is that project label is corresponding
In the project of front end.
Specifically, terminal obtains the supporting paper that the corresponding server of storage address returns.Wherein, which can be with
Have multiple, obtained supporting paper may be multiple.
In above-described embodiment, by sending supporting paper acquisition request to server, acquisition request carries user identifier,
Supporting paper acquisition request is sent to server, acquisition request carries user identifier.To the corresponding server hair of storage address
Downloading is sent to request, downloading request carries project label.Obtain the supporting paper that the corresponding server of storage address returns, explanation
File is in the corresponding front end project of project label.In front end project required for capable of being downloaded to from different servers
Supporting paper, convenient for generate the page.
In one embodiment, as shown in figure 4, step S206, the i.e. return of acquisition server render to obtain to front end page
Front end page element information, front end page element information be server rendering front end page obtain, according to front end page
Element information generation illustrates document file page, comprising steps of
S402 obtains preset configuration file, and configuration file is used for the theme skin of configuration instruction document file page, and parsing is default
Configuration file obtains parsing result.
Wherein, theme skin refers to the structure attribute information of the page.It may include page navigation structure, style sheet, page
Face color etc..
Specifically, terminal gets the configuration file pre-set, which is used for configuration instruction document file page
Theme skin.Terminal parses the configuration file, obtains the theme skin of the user configuration.
S404 is generated according to parsing result and front end page element information and is illustrated document file page with theme skin.
Specifically, terminal is generated according to parsing result and front end page element information illustrates documentation page with theme skin
Face.
In the above-described embodiments, preset configuration file is obtained, configuration file is used for the theme skin of configuration instruction document file page
Skin parses preset configuration file, obtains parsing result, is generated according to parsing result and front end page element information and has theme skin
Skin illustrates document file page.It configures user freely to theme skin by configuration file, improves user experience.
In one embodiment, as shown in figure 5, after step S206, i.e., in acquisition server return to preceding end page
The front end page element information that face renders, front end page element information are that server rendering front end page obtains, according to
After the generation of front end page element information illustrates document file page, further comprise the steps of:
S502 receives to the edit instruction for illustrating code sample in document file page, will illustrate documentation page according to edit instruction
Code sample is converted to editable state in face.
Wherein, editable state refers to that the code sample in the page is able to carry out modification.
Specifically, terminal is received to the edit instruction for illustrating code sample in document file page, according to edit instruction by explanation
Code sample is converted to editable state in document file page.For example, user clicks the corresponding Edit button of code sample, terminal is connect
The edit instruction sent by Edit button is received, corresponding example code is converted into editable state, user can be to place
It modifies in the code sample of editing mode.
S504 is received and is instructed to the modified compiling for illustrating code sample in document file page, according to compiling compiling of instruction
It is modified to illustrate code sample in document file page, compiling result is being illustrated that document file page shows.
Specifically, terminal is received to the modified compiling instruction for illustrating code sample in document file page, according to compiling
Compiling of instruction is modified to illustrate code sample in document file page, and compiling result is being illustrated that document file page shows.In a reality
It applies in example, terminal can monitor code sample by monitor, when monitoring code sample and being modified, compile modified shows
Example code, and compiling result is being illustrated that document file page shows.
In the above-described embodiments, by receiving to the edit instruction for illustrating code sample in document file page, referred to according to editor
Order will illustrate that code sample is converted to editable state in document file page.Reception illustrates example generation in document file page to modified
The compiling instruction of code, according to compiling, compiling of instruction is modified illustrates code sample in document file page, and compiling result is being illustrated
Document file page is shown.It is able to use family to modify to the code sample in the page, convenient for user's real time inspection code sample
Effect is easy to use.
In one embodiment, step S504, i.e., according to compiling, compiling of instruction is modified to illustrate example in document file page
Compiling result is being illustrated that document file page shows by code, comprising steps of
Render request is sent to server, render request carries the rendering result compiled as a result, acquisition server returns, will
Rendering result is illustrating that document file page shows.
Specifically, when terminal completes the modified code sample compiling illustrated in document file page, result will be compiled
Server is sent to be rendered.After server will compile result rendering, terminal obtains rendering result, and rendering result is being said
Bright document file page is shown.Rendering, which is carried out, by server is able to ascend page rendering efficiency.
In one embodiment, as shown in fig. 6, after step S206, in acquisition server return to front end page
Obtained front end page element information is rendered, front end page element information is that server rendering front end page obtains, according to preceding
After the generation of end page face element prime information illustrates document file page, further comprise the steps of:
S602, receives to the more new command for illustrating document file page, obtains each of update from server according to more new command
Supporting paper in the project of front end.
Specifically, terminal is received to the more new command for illustrating document file page, is obtained according to the more new command terminal to server
The project label and storage address of updated each front end project are taken, then sends project to the corresponding server of storage address
It identifies supporting paper downloading request, the corresponding server of storage address in corresponding front end project and returns to the project label to terminal
The supporting paper of corresponding front end project.Terminal gets the supporting paper in each front end project of update.
S604 parses the supporting paper in each front end project of update, obtains parsing result, obtained according to parsing result
The project description information of update shows the project description information of update in illustrating document file page.
Specifically, terminal parses the supporting paper in each front end project of the update, obtains parsing result.According to parsing
As a result the project description information updated, the project description information of update renders and drawn illustrate document file page, obtains more
Illustrate document file page after new.
In the above-described embodiments, by receiving to the more new command for illustrating document file page, according to more new command from server
The supporting paper in each front end project updated is obtained, the supporting paper in each front end project of update is parsed, is solved
Analysis is as a result, the project description information updated according to parsing result, is illustrating document file page for the project description information of update
Middle display can timely update and illustrate document file page, be easy to use.
In one embodiment, after step S206, i.e., front end page is rendered to obtain what acquisition server returned
Front end page element information, front end page element information be server rendering front end page obtain, according to front end page member
After prime information generation illustrates document file page, further comprise the steps of:
The instruction of project description information searching is received, look-up command carries project label, according to project description information searching
The corresponding project description information of project label is searched in instruction, and the project description information found is shown in illustrating document file page
Show.
Specifically, terminal receives the instruction of project description information searching, project label is carried in look-up command, according to project
Illustrate that the corresponding project description information of project label is searched in information searching instruction, by the project description information found in expository writing
It is shown in the shelves page.I.e. terminal can jump directly to facilitate user to look at the corresponding project description information page of project label
Project description information is looked for, user experience is promoted.
It should be understood that although each step in the flow chart of Fig. 2-6 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-6
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in fig. 7, providing a kind of document file page generating means 700, comprising: information obtains
Module 702, rendering module 704 and page generation module 706, in which:
Information obtains module 702, for receiving supporting paper acquisition instruction, according to supporting paper acquisition instruction from server
The supporting paper in each front end project is downloaded, supporting paper is parsed, obtains project description information;
Rendering module 704 sends front end page to server for obtaining front end page information according to project description information
Render request, front end page render request carry front end page information, so that server is according to front end page information to front end
Page rendering;
Page generation module 706, for obtaining the front end page element of server return rendered to front end page
Information, front end page element information are that server rendering front end page obtains, and generate explanation according to front end page element information
Document file page.
In one embodiment, information obtains module 702, comprising:
Request transmitting unit, for sending supporting paper acquisition request to server, acquisition request carries user identifier;
Information acquisition unit, for obtaining the project label for each front end project that server is found according to user identifier
And storage address;
Request transmitting unit is downloaded, for sending downloading request to the corresponding server of storage address, downloading request is carried
There is project label;
File obtaining unit, the supporting paper returned for obtaining the corresponding server of storage address, supporting paper is item
Target is known in corresponding front end project.
In one embodiment, page generation module 706, comprising:
Acquiring unit is configured, for obtaining preset configuration file, configuration file is used for the theme of configuration instruction document file page
Skin parses preset configuration file, obtains parsing result;
Theme page generating unit, for being generated according to parsing result and front end page element information with theme skin
Illustrate document file page.
In one embodiment, document file page generating means 700, further includes:
Edit instruction receiving module, for receiving to the edit instruction for illustrating code sample in document file page, according to editor
Instruction will illustrate that code sample is converted to editable state in document file page;
Result display module is compiled, for receiving to the modified compiling instruction for illustrating code sample in document file page,
According to compiling, compiling of instruction is modified illustrates code sample in document file page, and compiling result is being illustrated that document file page shows.
In one embodiment, result display module is compiled, comprising:
As a result rendering unit, for sending render request to server, render request carries compiling as a result, obtaining server
Rendering result is being illustrated that document file page shows by the rendering result of return.
In one embodiment, document file page generating means 700, further includes:
Command reception module is updated, for receiving to the more new command for illustrating document file page, according to more new command from service
Device obtains the supporting paper in each front end project updated;
Update module obtains parsing result, according to parsing for parsing the supporting paper in each front end project updated
As a result the project description information updated shows the project description information of update in illustrating document file page.
In one embodiment, document file page generating means 700, further includes:
Searching module, for receiving the instruction of project description information searching, look-up command carries project label, according to project
Illustrate that the corresponding project description information of project label is searched in information searching instruction, by the project description information found in expository writing
It is shown in the shelves page.
Specific about document file page generating means limits the limit that may refer to above for document file page generation method
Fixed, details are not described herein.Modules in above-mentioned document file page generating means can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 8.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of document file page generation method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 8, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of when executing computer program receives supporting paper acquisition instruction, according to explanation
File acquisition instruction downloads the supporting paper in each front end project from server, parses supporting paper, obtains project description letter
Breath;Front end page information is obtained according to project description information, sends front end page render request, front end page rendering to server
Request carries front end page information, so that server renders front end page according to front end page information;Server is obtained to return
The front end page element information rendered to front end page returned, front end page element information are server rendering front end pages
It obtains, document file page is illustrated according to the generation of front end page element information.
In one embodiment, it is also performed the steps of when processor executes computer program to server and sends explanation
File acquisition request, acquisition request carry user identifier;Obtain each front end that server is found according to user identifier
Purpose project label and storage address;Downloading request is sent to the corresponding server of storage address, downloading request carries project
Mark;The supporting paper that the corresponding server of storage address returns is obtained, supporting paper is the corresponding front end project of project label
In.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains preset configuration file,
Configuration file is used for the theme skin of configuration instruction document file page, parses preset configuration file, obtains parsing result;According to parsing
As a result it is generated with front end page element information and illustrates document file page with theme skin.
In one embodiment, reception is also performed the steps of when processor executes computer program to illustrating documentation page
The edit instruction of code sample in face will illustrate that code sample is converted to editable state in document file page according to edit instruction;
It receives and the modified compiling for illustrating code sample in document file page is instructed, according to the compiling modified expository writing of compiling of instruction
Compiling result is being illustrated that document file page shows by code sample in the shelves page.
In one embodiment, it also performs the steps of to send to server when processor executes computer program and render
Request, render request carry compiling as a result, obtaining the rendering result that server returns, rendering result are being illustrated that document file page shows
Show.
In one embodiment, reception is also performed the steps of when processor executes computer program to illustrating documentation page
The more new command in face, according to more new command from server obtain update each front end project in supporting paper;Parsing updates
Each front end project in supporting paper, obtain parsing result, the project description information updated according to parsing result, will
The project description information of update is shown in illustrating document file page.
In one embodiment, it is also performed the steps of when processor executes computer program and receives project description information
Look-up command, look-up command carry project label, are instructed according to project description information searching and search the corresponding item of project label
Mesh illustrates information, and the project description information found is shown in illustrating document file page.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performed the steps of when being executed by processor receive supporting paper acquisition instruction, according to supporting paper acquisition instruction from
Server downloads the supporting paper in each front end project, parses supporting paper, obtains project description information;According to the project description
Information obtains front end page information, sends front end page render request to server, front end page render request carries front end
Page info, so that server renders front end page according to front end page information;Obtain server return to front end page
Obtained front end page element information is rendered, front end page element information is that server rendering front end page obtains, according to preceding
The generation of end page face element prime information illustrates document file page.
In one embodiment, it also performs the steps of when computer program is executed by processor and is said to server transmission
Prescribed paper acquisition request, acquisition request carry user identifier;Obtain each front end that server is found according to user identifier
The project label and storage address of project;Downloading request is sent to the corresponding server of storage address, downloading request carries item
Target is known;The supporting paper that the corresponding server of storage address returns is obtained, supporting paper is the corresponding front end of project label
In mesh.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains preset configuration text
Part, configuration file are used for the theme skin of configuration instruction document file page, parse preset configuration file, obtain parsing result;According to
Parsing result and front end page element information, which are generated, illustrates document file page with theme skin.
In one embodiment, reception is also performed the steps of when computer program is executed by processor to illustrating document
The edit instruction of code sample in the page will illustrate that code sample is converted to editable shape in document file page according to edit instruction
State;It receives and the modified compiling for illustrating code sample in document file page is instructed, according to the compiling modified theory of compiling of instruction
Compiling result is being illustrated that document file page shows by code sample in bright document file page.
In one embodiment, it is also performed the steps of when computer program is executed by processor to server and sends wash with watercolours
Dye request, render request carry compiling as a result, obtaining the rendering result that server returns, rendering result are being illustrated document file page
Display.
In one embodiment, reception is also performed the steps of when computer program is executed by processor to illustrating document
The more new command of the page, according to more new command from server obtain update each front end project in supporting paper;Parsing is more
Supporting paper in new each front end project, obtains parsing result, the project description information updated according to parsing result,
The project description information of update is shown in illustrating document file page.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives project description letter
Look-up command is ceased, look-up command carries project label, instructs lookup project label corresponding according to project description information searching
Project description information shows the project description information found in illustrating document file page.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of document file page generation method, which comprises
Supporting paper acquisition instruction is received, is downloaded in each front end project according to the supporting paper acquisition instruction from server
Supporting paper parses the supporting paper, obtains project description information;
Front end page information is obtained according to the project description information, front end page render request is sent to server, before described
End page face render request carries front end page information, so that server is according to the front end page information to front end page wash with watercolours
Dye;
Obtain the front end page element information rendered to front end page that the server returns, the front end page element
Information is that server renders the front end page and obtains, and illustrates document file page according to front end page element information generation.
2. the method according to claim 1, wherein being downloaded according to the supporting paper acquisition instruction from server
Supporting paper in each front end project, comprising:
Supporting paper acquisition request is sent to the server, the acquisition request carries user identifier;
Obtain the project label and storage address of each front end project that the server is found according to the user identifier;
Downloading request is sent to the corresponding server of the storage address, the downloading request carries the project label;
The supporting paper that the corresponding server of the storage address returns is obtained, the supporting paper is that the project label is corresponding
Front end project in.
3. the method according to claim 1, wherein obtaining rendering to front end page for the server return
The front end page element information arrived, the front end page element information are that server renders the front end page and obtains, according to
The front end page element information generation illustrates document file page, comprising:
Preset configuration file is obtained, the configuration file is for configuring the theme skin for illustrating document file page, described in parsing
Preset configuration file, obtains parsing result;
It is generated according to the parsing result and the front end page element information and illustrates document file page with the theme skin.
4. the method according to claim 1, wherein in the acquisition server return to front end page
Obtained front end page element information is rendered, the front end page element information is that the server rendering front end page obtains
, it is generated according to the front end page element information after illustrating document file page, further includes:
It receives to the edit instruction for illustrating code sample in document file page, document is illustrated for described according to the edit instruction
Code sample is converted to editable state in the page;
It receives and the modified compiling for illustrating code sample in document file page is instructed, repaired according to the compiling compiling of instruction
Illustrate code sample in document file page after changing, compiling result is illustrated that document file page is shown described.
5. according to the method described in claim 4, it is characterized in that, the modified explanation according to the compiling compiling of instruction
Compiling result is illustrated that document file page is shown described by code sample in document file page, comprising:
Render request is sent to the server, the render request carries compiling as a result, obtaining the wash with watercolours that the server returns
Dye is as a result, illustrate that document file page is shown described for the rendering result.
6. the method according to claim 1, wherein it is described obtain that the server returns to front end page wash with watercolours
Contaminating obtained front end page element information, the front end page element information is that server renders the front end page and obtains,
It is generated according to the front end page element information after illustrating document file page, further includes:
Receive to the more new command for illustrating document file page, obtained according to the more new command from server update it is each before
Supporting paper in the project of end;
The supporting paper in each front end project of the update is parsed, parsing result is obtained, is obtained according to the parsing result
The project description information of the update is illustrated to show in document file page by the project description information of update described.
7. the method according to claim 1, wherein in the acquisition server return to front end page
Obtained front end page element information is rendered, the front end page element information is that the server rendering front end page obtains
, it is generated according to the front end page element information after illustrating document file page, further includes:
The instruction of project description information searching is received, the look-up command carries project label, according to the project description information
The corresponding project description information of the project label is searched in look-up command, by the project description information found in expository writing
It is shown in the shelves page.
8. a kind of document file page generating means, which is characterized in that described device includes:
Information obtains module, for receiving supporting paper acquisition instruction, according to the supporting paper acquisition instruction under server
The supporting paper in each front end project is carried, the supporting paper is parsed, obtains project description information;
Rendering module sends front end page wash with watercolours to server for obtaining front end page information according to the project description information
Dye request, the front end page render request carries front end page information, so that server is according to the front end page information
Front end page is rendered;
Page generation module, the front end page element letter that front end page is rendered returned for obtaining the server
Breath, the front end page element information are that server renders the front end page and obtains, and are believed according to the front end page element
Breath, which generates, illustrates document file page.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
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 true CN109901834A (en) | 2019-06-18 |
CN109901834B 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) |
Cited By (13)
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 |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | 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 |
CN111045655A (en) * | 2019-12-18 | 2020-04-21 | 广州市百果园信息技术有限公司 | Page rendering method and device, rendering server and storage medium |
CN111177621A (en) * | 2019-12-23 | 2020-05-19 | 北京达佳互联信息技术有限公司 | Web page development method, device and system |
CN111221558A (en) * | 2020-03-04 | 2020-06-02 | 南京华飞数据技术有限公司 | Semi-automatic resource updating method and system |
CN112182201A (en) * | 2020-11-10 | 2021-01-05 | 平安普惠企业管理有限公司 | Rich text report generation method and device, computer equipment and storage medium |
CN112287255A (en) * | 2020-07-13 | 2021-01-29 | 上海柯林布瑞信息技术有限公司 | Page construction method and device, computing equipment and computer 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 |
CN113761428A (en) * | 2020-06-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Page rendering method, device and system, storage medium and electronic equipment |
CN113760252A (en) * | 2020-11-16 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data visualization method, device, computer system and readable storage medium |
CN115665120A (en) * | 2022-12-28 | 2023-01-31 | 浙江华东工程数字技术有限公司 | Cloud CAD processing method and system, computer equipment and storage medium |
Citations (4)
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 |
-
2019
- 2019-01-25 CN CN201910072152.5A patent/CN109901834B/en active Active
Patent Citations (4)
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 |
Non-Patent Citations (1)
Title |
---|
佚名: "如何编写合格的项目说明[ReadMe]文档?", pages 1 - 2, Retrieved from the Internet <URL:https://www.cnblogs.com/chenkai/archive/2012/06/20/2556047.html> * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020253061A1 (en) * | 2019-06-20 | 2020-12-24 | 平安科技(深圳)有限公司 | Page generating method and apparatus, computer device, and storage medium |
CN110362308A (en) * | 2019-06-20 | 2019-10-22 | 平安科技(深圳)有限公司 | Page generation method, device, computer equipment and storage medium |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | 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 |
CN111045655A (en) * | 2019-12-18 | 2020-04-21 | 广州市百果园信息技术有限公司 | Page rendering method and device, rendering server and storage medium |
CN111045655B (en) * | 2019-12-18 | 2023-04-14 | 广州市百果园信息技术有限公司 | Page rendering method and device, rendering server and storage medium |
CN111177621A (en) * | 2019-12-23 | 2020-05-19 | 北京达佳互联信息技术有限公司 | Web page development method, device and system |
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 |
CN113761428A (en) * | 2020-06-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Page rendering method, device and system, storage medium and electronic equipment |
CN112287255A (en) * | 2020-07-13 | 2021-01-29 | 上海柯林布瑞信息技术有限公司 | Page construction method and device, computing equipment and computer readable storage medium |
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 |
CN115665120A (en) * | 2022-12-28 | 2023-01-31 | 浙江华东工程数字技术有限公司 | Cloud CAD processing method and system, computer equipment and storage medium |
CN115665120B (en) * | 2022-12-28 | 2023-03-21 | 浙江华东工程数字技术有限公司 | Cloud CAD processing method and system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109901834B (en) | 2023-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109901834A (en) | Document file page generation method, device, computer equipment and storage medium | |
CN108108205B (en) | Application page surface treatment method and apparatus | |
CN109814854B (en) | Project framework generation method, device, computer equipment and storage medium | |
CN107066631A (en) | Display methods, device and the electronic equipment of the page | |
CN109254773A (en) | Skeleton page generation method, device, equipment and storage medium | |
CN109840083B (en) | Webpage component template construction method and device, computer equipment and storage medium | |
CN109388396A (en) | Page generation method, device, computer equipment and storage medium | |
CN111563220A (en) | Business website project construction method and device, computer equipment and storage medium | |
CN110221848A (en) | APP method for updating pages, device, electronic equipment and storage medium | |
CN110389755B (en) | Code processing method and device, electronic equipment and computer readable storage medium | |
CN112596714A (en) | Webpage development method, device, terminal, server and storage medium | |
CN109614325B (en) | Method and device for determining control attribute, electronic equipment and storage medium | |
CN111949522A (en) | User interface automatic testing method and device | |
CN112486828A (en) | Test case generation method and device, computer equipment and storage medium | |
CN114461533A (en) | Method, system, electronic device and storage medium for automatic testing of Web page | |
CN110597552A (en) | Configuration method, device and equipment of project continuous integration pipeline and storage medium | |
CN113032078A (en) | Page display method and device, electronic equipment and computer readable storage medium | |
CN110888634B (en) | Game floor page generation method, game floor page generation device, computer equipment and storage medium | |
US11126410B2 (en) | Method and apparatus for building pages, apparatus and non-volatile computer storage medium | |
CN111488731A (en) | File generation method and device, computer equipment and storage medium | |
CN110362317B (en) | Code conversion method, device and storage medium | |
CN116302250A (en) | Interface multiplexing method, device, electronic equipment and storage medium | |
CN115292641A (en) | Page generation method, device, server and storage medium | |
CN111857782B (en) | Interface updating method and device, computer equipment and storage medium | |
CN113110829A (en) | Multi-UI component library data processing method and device |
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 |