Website construction method and device and electronic equipment
By obtaining and registering preset configuration files and name information, generating intermediate files and registering them in a custom user interface, the redundant operation problem of enterprises when maintaining multiple associated content websites is solved, and the document content of multiple platforms is efficiently maintained in the same VuePress project.
Patent Information
- Application Number
- CN202510205941.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When an enterprise maintains multiple associated content websites, it needs to update the theme package in each VuePress project, resulting in redundant operations and low development efficiency.
By obtaining the preset configuration file and the name information of the website to be built, obtaining the source document data required to build the website, determining the document module information, generating intermediate files, and registering the data information to the custom user interface through the configuration program of the static website generator to complete the website construction.
It realizes the maintenance of document content on multiple platforms in the same VuePress project, simplifies the theme update and maintenance process of multiple related content websites, and improves development efficiency.
Smart Images

Figure CN119691312A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a website construction method, device and electronic equipment. Background Art
[0002] VuePress is a static website generation tool that provides developers with a modern, responsive default theme suitable for various document projects. VuePress also has a flexible plug-in system that allows users to extend and customize website functions through plug-ins. For enterprises, they usually need to maintain multiple related content websites, and for each content website, they need to create a new VuePress project to complete the deployment and construction of the website. In order to improve the user experience and give users a good visual effect, these related websites usually need to use a customized unified style theme.
[0003] However, when an enterprise needs to update the themes of multiple related content websites it has created, it is necessary to update the theme package in the VuePress project corresponding to each website, which involves many redundant operations and low development efficiency. Summary of the invention
[0004] To solve the existing technical problems, the embodiments of the present invention provide a website construction method, device, electronic device and computer-readable storage medium.
[0005] In the first aspect, an embodiment of the present invention provides a website construction method, including: obtaining a preset configuration file and name information of a website to be constructed; the preset configuration file includes basic information of documents belonging to multiple associated websites, and corresponding information between each associated website and its documents; based on the preset configuration file and the name information, the source document data required for constructing the website is obtained, document module information is determined, an intermediate file is generated, and a functional module configuration required for the target document is determined; the intermediate file contains data information to be displayed in the document module; based on the document module information, the document path registration is completed, and the data information and document configuration information of the intermediate file are registered to a custom user interface through the configuration program of the static website generator; based on the source document data, the native function of the static website generator completes the construction of the website to be constructed.
[0006] Optionally, the basic information includes: one or more of the document name, title, brief description, and document path.
[0007] Optionally, obtaining the name information of the website to be constructed includes: obtaining the name information of the website to be constructed based on a command line input; or obtaining the name information of the website to be constructed based on clicking tag information in a packaged interactive interface.
[0008] Optionally, determining the document module information and generating the intermediate file includes: searching the preset configuration file for the document module information corresponding to the name information of the website to be constructed, and generating the intermediate file recognizable by the registration program based on the document module information.
[0009] Optionally, the intermediate file is a file actively created by the registration program, or a file with the same name obtained by the registration program overwriting a pre-created file.
[0010] Optionally, the customized user interface includes at least: web page layout, menu bar design, font size, color and style.
[0011] In the second aspect, an embodiment of the present invention also provides a website construction device, including: an acquisition module, a generation module, a registration module and a construction module; the acquisition module is used to obtain a preset configuration file and the name information of a website to be constructed; the preset configuration file includes basic information of documents belonging to multiple associated websites, and corresponding information between each associated website and its documents; the generation module is used to obtain source document data required for constructing the website based on the preset configuration file and the name information, determine document module information, generate an intermediate file, and determine the functional module configuration required for the target document; the intermediate file contains data information to be displayed in the document module; the registration module is used to complete document path registration based on the document module information, and register the data information and document configuration information of the intermediate file to a custom user interface through the configuration program of the static website generator; the construction module is used to complete the construction of the website to be constructed based on the source document data and the native function of the static website generator.
[0012] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program stored in the memory, and when the computer program is executed by the processor, the website construction method described in the first aspect is implemented.
[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the website construction method described in the first aspect above.
[0014] In a fifth aspect, the present application further provides a computer program product, including a computer program, which, when executed, implements the website construction method described in the first aspect or any possible design method of the first aspect.
[0015] The website construction method, device, electronic device and computer-readable storage medium provided by the embodiment of the present invention provide a method and system for constructing multiple related content websites based on the original VuePress framework, and complete the document data initialization of each platform through a preset configuration file and registration program, so as to realize the maintenance of document content in multiple platforms in the same VuePress project. In other words, the method can centrally manage all documents under multiple related content websites, and only needs to create a VuePress project to update and maintain the document content / theme of all websites, which is convenient and fast. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0017] Figure 1 A flow chart of a website construction method provided by an embodiment of the present invention is shown; Figure 2 A schematic diagram showing the structure of a website building device provided by an embodiment of the present invention is shown; Figure 3 A schematic diagram of the structure of an electronic device for executing a website building method provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0018] In some actual scenarios, the inventors found that when a content website needs to add documents from other related websites, for example: website A contains documents a, b, and c, and website B contains documents d, e, and f. When website A needs to add document d from website B, it is necessary to add a corresponding document module to the VuePress project corresponding to website A, and add a path to complete the addition of document d in website A. The operation process is complicated. To solve this problem, an embodiment of the present invention provides a website construction method. The embodiment of the present invention is described below in conjunction with the drawings in the embodiment of the present invention.
[0019] Figure 1 FIG. 1 is a flow chart showing a website construction method provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps 101-104.
[0020] Step 101: Obtain a preset configuration file and name information of a website to be constructed; the preset configuration file includes basic information of documents belonging to multiple associated websites, and corresponding information between each associated website and its documents.
[0021] For example, it is necessary to build three related content websites A, B, and C, where website A contains documents a and b; website B contains documents a, c, and d; and website C contains documents a, e, and f. Then the preset configuration file includes basic information of the six documents a, b, c, d, e, and f, and the corresponding relationship between each website A, B, and C and the above six documents. Optionally, the basic information includes: one or more of the document name, title, brief description, and document path.
[0022] Step 102: Based on the preset configuration file and name information, the source document data required for building the website is obtained, the document module information is determined, an intermediate file is generated, and the functional module configuration required for the target document is determined; the intermediate file contains the data information to be displayed in the document module.
[0023] In an embodiment of the present invention, the source document data required for building an associated content website can be obtained based on a preset configuration file (i.e., the basic information of the document and the corresponding information of the document) and the name information, and the document module information can be further determined based on the preset configuration file and the name information to further generate an intermediate file. Among them, the document module information includes but is not limited to: name, title (such as Yihui Aizhi), description (such as advancing the progress of the Internet of Things era), search, image link imgUrl, application identifier app Id, attribution name ascriptionName (such as Xi'an Yihui Aizhi Internet of Things Technology Co., Ltd.), domain name domain, etc. It can be set and modified according to actual needs. Among them, the functional module configuration required for the target document is determined, including whether it contains a problem feedback function, whether it supports sharing, etc.; the intermediate file contains data information to be displayed in the document module. Furthermore, the intermediate file contains the document name, navigation bar title, brief description, etc. that need to be displayed in the document module of the website.
[0024] Step 103: Complete the document path registration based on the document module information, and register the data information of the intermediate file and the document configuration information to the custom user interface through the configuration program of the static website generator.
[0025] Among them, document path registration refers to registering the network access path of the document belonging to the website to be built, that is, the registration of the network access path of the document can be completed based on the document module information. In an embodiment of the present invention, the static website generator is VuePress, and the document configuration information and the data information of the intermediate file can be registered to the custom user interface through VuePress to complete data rendering.
[0026] Step 104: Based on the source document data, the native function of the static website generator completes the construction of the website to be built.
[0027] Finally, based on the source document data, continue to use the native function of the static website generator VuePress to convert the source document data in markdown (a lightweight markup language) format into HTML (HyperText MarkupLanguage), and package it with relevant configuration files and send it to the server to complete the deployment and construction of the website.
[0028] The website construction method provided in the embodiment of the present invention is based on the original VuePress framework, and provides a method and system for constructing multiple related content websites. The document data of each platform is initialized through a preset configuration file and a registration program, and the document content of multiple platforms is maintained in the same VuePress project. In other words, the method can centrally manage all documents under multiple related content websites, and only needs to create a VuePress project to update and maintain the document content / theme of all websites, which is convenient and fast.
[0029] Optionally, obtaining the name information of the website to be constructed includes: obtaining the name information of the website to be constructed based on the command line input. That is, the name information of the website to be constructed may be input by the developer through the command line during the construction process, and the program automatically obtains the name information inputted in the command line to determine the associated content website to be constructed. It can be understood that by inputting different name information each time, the same method can be used to construct the website.
[0030] Alternatively, in addition to inputting the website information to be constructed through the command line, the embodiment of the present invention can also obtain the name information of the website to be constructed by clicking the tag information in the packaged interactive interface. For example, a visual interactive interface can be packaged, and the developer clicks the tag information, and the program automatically obtains and confirms to construct the website corresponding to the tag.
[0031] Optionally, the step 102 of "determining document module information and generating an intermediate file" may include: searching for document module information corresponding to the name information of the website to be constructed in a preset configuration file, and generating an intermediate file that can be recognized by the registration program based on the document module information. The content of the intermediate file includes the document name, navigation bar title, brief description, etc. that need to be displayed in the document module of the website.
[0032] Optionally, the intermediate file is a file actively created by the registration program, or a file with the same name obtained by the registration program overwriting a pre-created file.
[0033] That is, if no intermediate file is created in advance, the registration program can actively create the intermediate file and write the content; if there is a pre-created intermediate file, the registration program actively creates an intermediate file with the same name and overwrites the pre-created intermediate file.
[0034] Optionally, the customized user interface includes at least data information of elements such as web page layout, menu bar design, font size, color and style.
[0035] It should be noted that, for the embodiment of the present invention, when the themes of all related content websites need to be updated, it is only necessary to update the custom user interface information in the VuePress project without additional code modification.
[0036] The website construction method provided by the embodiment of the present invention is described in detail above. The method can also be implemented by a corresponding device. The website construction device provided by the embodiment of the present invention is described in detail below.
[0037] Figure 2 FIG. 1 is a schematic diagram showing the structure of a website construction device provided by an embodiment of the present invention. Figure 2 As shown, the website construction device includes a processor, which includes: an acquisition module 21, a generation module 22, a registration module 23 and a construction module 24.
[0038] The acquisition module 21 is used to acquire the name information of the preset configuration file and the website to be constructed; the preset configuration file includes basic information of the documents belonging to multiple associated websites, and corresponding information between each of the associated websites and the documents belonging to them.
[0039] The generation module 22 is used to obtain the source document data required to build the website based on the preset configuration file and the name information, determine the document module information, generate an intermediate file and determine the functional module configuration required for the target document; the intermediate file contains data information to be displayed in the document module.
[0040] The registration module 23 is used to complete the document path registration based on the document module information, and register the data information and document configuration information of the intermediate file to the custom user interface through the configuration program of the static website generator.
[0041] The construction module 24 is used to complete the construction of the website to be constructed based on the source document data and the native function of the static website generator.
[0042] Optionally, the basic information includes: one or more of the document name, title, brief description, and document path.
[0043] Optionally, the acquisition module 21 includes: a name information acquisition unit.
[0044] The name information acquisition unit is used to acquire the name information of the website to be constructed based on the command line input; or to acquire the name information of the website to be constructed based on the label information in the interactive interface of the click package.
[0045] Optionally, the generating module 22 includes: an intermediate file generating unit.
[0046] The intermediate file generating unit is used to search the preset configuration file for the document module information corresponding to the name information of the website to be constructed, and to generate the intermediate file identifiable by the registration program based on the document module information.
[0047] Optionally, the intermediate file is a file actively created by the registration program, or a file with the same name obtained by the registration program overwriting a pre-created file.
[0048] Optionally, the customized user interface includes at least: web page layout, menu bar design, font size, color and style.
[0049] The device provided in the embodiment of the present invention provides a method and system for constructing multiple related content websites based on the original VuePress framework, completes the document data initialization of each platform through a preset configuration file and registration program, and realizes the maintenance of document content in multiple platforms in the same VuePress project. In other words, the device can centrally manage all documents under multiple related content websites, and only needs to create a VuePress project to update and maintain the document content / theme of all websites, which is convenient and fast.
[0050] It should be noted that the website construction device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when implementing the corresponding functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the website construction device provided in the above embodiment and the website construction method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0051] According to one aspect of the present application, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part. When the computer program is executed by a processor, the website construction method provided by the embodiment of the present application is executed.
[0052] In addition, an embodiment of the present invention further provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned website construction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0053] For details, see Figure 3 As shown, the electronic device includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 , and a user interface 1160 .
[0054] In the embodiment of the present invention, the electronic device further includes: a computer program stored in the memory 1150 and executable on the processor 1120, and when the computer program is executed by the processor 1120, each process of the above-mentioned website construction method embodiment is implemented.
[0055] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .
[0056] In an embodiment of the present invention, a bus architecture (represented by bus 1110 ) may include any number of interconnected buses and bridges, and bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150 .
[0057] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an Accelerate Graphical Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0058] The processor 1120 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processors include: a general processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a programmable logic array (PLA), a microcontroller unit (MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located on multiple different chips.
[0059] Processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in the embodiment of the present invention can be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a readable storage medium known in the art, such as a random access memory (RAM), a flash memory (FlashMemory), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a register, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0060] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, the embodiments of the present invention will not be further described.
[0061] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, and a stylus.
[0062] It should be understood that in an embodiment of the present invention, the memory 1150 may further include a memory remotely arranged relative to the processor 1120, and these remotely arranged memories may be connected to the server through a network. One or more parts of the above-mentioned network may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above-mentioned networks. For example, the cellular telephone network and the wireless network can be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, a LTE Frequency Division Duplex (FDD) system, a LTE Time Division Duplex (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications (UMTS) system, an Enhanced Mobile Broadband (eMBB) system, a Massive Machine Type of Communication (mMTC) system, an Ultra Reliable Low Latency Communications (uRLLC) system, etc.
[0063] It should be understood that the memory 1150 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0064] Volatile memory includes: Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as: Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM) and Direct Rambus RAM (DRRAM). The memory 1150 of the electronic device described in the embodiment of the present invention includes but is not limited to the above and any other suitable types of memory.
[0065] In the embodiment of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.
[0066] Specifically, the operating system 1151 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various applications, such as a media player (Media Player) and a browser (Browser), which are used to implement various application services. The program for implementing the method of the embodiment of the present invention may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.
[0067] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned website construction method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0068] Computer readable storage media include: permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by instruction execution devices. Computer readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination of the above. Computer readable storage media include: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves with instructions recorded thereon) or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (such as light pulses passing through fiber optic cables), or electrical signals transmitted through wires.
[0069] In the several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0070] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one location or distributed on multiple network units. Some or all of the units may be selected according to actual needs to solve the problem to be solved by the embodiments of the present invention.
[0071] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0072] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (including: a personal computer, a server, a data center or other network equipment) to perform all or part of the steps of the method described in each embodiment of the present invention. The above-mentioned storage medium includes various media that can store program codes as listed above.
[0073] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, electronic devices and computer-readable storage media. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0074] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device.
[0075] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted by any appropriate medium, including: wireless, wire, optical cable, radio frequency (RF) or any suitable combination thereof.
[0076] The computer program code for performing the operation of the embodiment of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages or a combination thereof, wherein the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The computer program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, and completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0077] The embodiments of the present invention describe the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0078] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0079] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0080] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0081] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present invention, which should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.
Claims
1. A website construction method, characterized in that: include: Obtaining a preset configuration file and name information of a website to be constructed; the preset configuration file includes basic information of documents belonging to multiple associated websites, and corresponding information between each associated website and its documents; Based on the preset configuration file and the name information, the source document data required for building the website is obtained, the document module information is determined, an intermediate file is generated, and the function module configuration required for the target document is determined; the intermediate file contains data information to be displayed in the document module; Complete document path registration based on the document module information, and register the data information and document configuration information of the intermediate file to the custom user interface through the configuration program of the static website generator; Based on the source document data, the native function of the static website generator completes the construction of the website to be constructed.
2. The method according to claim 1, characterized in that The basic information includes: one or more of the document name, title, brief description, and document path.
3. The method according to claim 1, characterized in that Obtaining the name information of the website to be constructed includes: The name information of the website to be constructed is obtained based on the command line input; or the name information of the website to be constructed is obtained based on the label information in the interactive interface of the click package.
4. The method according to claim 1, characterized in that The step of determining document module information and generating an intermediate file includes: The document module information corresponding to the name information of the website to be constructed is searched in the preset configuration file, and the intermediate file recognizable by the registration program is generated based on the document module information.
5. The method according to claim 1, characterized in that The intermediate file is a file actively created by the registration program, or a file with the same name obtained by the registration program overwriting a pre-created file.
6. The method according to claim 1, characterized in that The customized user interface includes at least: web page layout, menu bar design, font size, color and style.
7. A website construction device, characterized in that: include: Get module, generate module, register module and build module; The acquisition module is used to acquire the name information of the preset configuration file and the website to be constructed; the preset configuration file includes basic information of the documents belonging to multiple associated websites, and corresponding information between each of the associated websites and the documents belonging to them; The generation module is used to obtain source document data required for building a website based on the preset configuration file and the name information, determine document module information, generate an intermediate file, and determine the function module configuration required for the target document; the intermediate file contains data information to be displayed in the document module; The registration module is used to complete the document path registration based on the document module information, and register the data information and document configuration information of the intermediate file to the custom user interface through the configuration program of the static website generator; The construction module is used to complete the construction of the website to be constructed based on the source document data and the native function of the static website generator.
8. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor executes the computer program stored in the memory to implement the steps in the website construction method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the website construction method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed, the steps in the website construction method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Linked network presence documents associated with a unique member of a membership-based organization
CN110419056A
Method, device and equipment for generating interactive user interface and storage medium
CN118113283A
Generating a new file using instance information
US20080235261A1
Systems and methods to package web site resources
US20160094610A1