Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and terminal for generating a document website

A website and document technology, which is applied in the document website generation method and the terminal field, can solve the problems of increasing debugging costs, slow writing code files, etc., and achieve the effects of easy reading, increased generation speed, and reduced debugging costs

Active Publication Date: 2022-04-12
福建省华渔教育科技有限公司
View PDF4 Cites 0 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 writing static files;
[0005] 2. Due to possible bugs in the code, writing code files will increase debugging costs compared to writing static files;

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
  • A method and terminal for generating a document website
  • A method and terminal for generating a document website
  • A method and terminal for generating a document website

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Please refer to Figure 1 to Figure 2 , Embodiment 1 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] Wherein, the JS file includes dynamic js code, and the document website is generated according to the js code.

Embodiment 2

[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 first embodiment above, the static file in step S1 is specifically an MD file, and the static loader is md loader.

[0072] Step S2 is specifically:

[0073] S21. Analyze the MD file to obtain the AST;

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

[0075] S22. Traversing the AST, and sequentially judging whether the tree nodes of the AST are in the agreed format, if so, returning the content of the tree nodes as native js code, otherwise converting the content of the tree nodes into the js code of the display format and returning, the display format is The 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 return" specifically: conver...

Embodiment 3

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

[0093] A document website generation terminal 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and operable on the processor 2. When the processor 2 executes the computer program, the steps in the first embodiment above are realized.

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 method and a terminal for generating a document website, traversing source codes, obtaining static files, submitting the static files to a static loader; executing the static loader, converting the static files into JS files, and generating a document website; The invention only needs to write static files, and then through the Loader plug-in, the static files are automatically converted into dynamic codes, so that a document website with dynamic effects can be quickly built, the generation speed of the website is improved, the debugging cost is reduced, and it 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/51
CPCG06F8/51
Inventor 刘德建陈铭陈耀灿郭玉湖
Owner 福建省华渔教育科技有限公司