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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap