Document website generation method and terminal

A website and document technology, applied in the document website generation method and terminal field, can solve the problems of slow writing code files, increase debugging costs, etc., and achieve the effects of being easy to read, reducing debugging costs, and improving generation speed

Active Publication Date: 2019-08-30
福建省华渔教育科技有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Since the code has strict format specification restrictions and framework constraints, the speed of writing code files is slower than w

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Document website generation method and terminal
  • Document website generation method and terminal
  • Document website generation method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0064] Please refer to Figure 1 to Figure 2 , the first embodiment of the present invention is:

[0065] A method for generating a document website, comprising the steps of:

[0066] S1. Traverse the source code, obtain static files, and submit the static files to the static loader;

[0067] Among them, if there may be multiple static files in the source code, convert them one by one;

[0068] S2. Execute the static loader, convert the static file into a JS file, and generate a document website.

[0069] Among them, the JS file includes dynamic js code, and the document website is generated according to the js code.

Example Embodiment

[0070] Please refer to Figure 1 to Figure 2 , the second embodiment of the present invention is:

[0071] A method for generating a document website, on the basis of the above-mentioned first embodiment, the static file in step S1 is specifically an MD file, and the static loader is an md loader.

[0072] Step S2 is specifically:

[0073] S21, parse the MD file to obtain AST;

[0074] Wherein, "analyzing the MD file" in step S21 is specifically: analysing the MD file by the md parser;

[0075] S22. Traverse the AST, and judge in turn whether the tree nodes of the AST are in the agreed format. If so, return the content of the tree node as the native js code; otherwise, convert the content of the tree node into the js code of the display format and return, and the display format is Display formats supported by the browser;

[0076] Wherein, in step S22, "convert the content of the tree node into the js code of the display format and then return" is specifically: convert the...

Example Embodiment

[0092] Please refer to Figure 1 to Figure 2 , the third embodiment of the present invention is:

[0093] A document website generating terminal 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and running on the processor 2, and the processor 2 implements the steps in the first embodiment when executing the computer program.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a document website generation method and terminal, and the method comprises the steps: traversing a source code, obtaining a static file, and submitting the static file to a static loader; executing a static loader, converting the static file into a JS file, and generating a document website. According to the method and the device, only the static file needs to be compiled,and then the static file is automatically converted into the dynamic code through the Loader plug-in, so that the document website with the dynamic effect can be quickly built, the generation speed of the website is increased, the debugging cost is reduced, and meanwhile, the website is easy to read.

Description

technical field [0001] The invention relates to the field of software, in particular to a method for generating a document website and a terminal. Background technique [0002] In the process of front-end development, in order to let users understand a certain front-end technology (development framework, ui components, etc.) as soon as possible, the developer will also provide a document website when releasing the program. In addition, various rich online demonstrations will be provided to help users get started as soon as possible. [0003] In the traditional development method, the demo page in the documentation website is written through the front-end code. This method has many inconveniences, as follows: [0004] 1. Since the code has strict format specification restrictions and framework constraints, the speed of writing code files is slower than writing static files; [0005] 2. Due to possible bugs in the code, writing code files will increase debugging costs compar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/51
CPCG06F8/51
Inventor 刘德建陈铭陈耀灿郭玉湖
Owner 福建省华渔教育科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products