The present disclosure provides a method and apparatus for building pages, an apparatus and a non-volatile computer storage medium. According to embodiments of the present disclosure, the initial document content of the page to be published is obtained so that page resources of the page to be published are generated according to the document arrangement information and the initial document content. Manual operations are not needed. This enables simple operations, a short operation duration and a high correctness rate, and thereby improves the page-building efficiency and reliability.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method for building webpages, wherein the method comprises: obtaining initial document content of a webpage to be published; according to document arrangement information and the initial document content, generating page resources of the webpage to be published, wherein the document arrangement information is page resources of a template page, and wherein the page resources of the template page comprises a page main resource and a page sub-resource, wherein the page main resource is a page source code and the page sub-resource is static resources linked by the page main resource, wherein the initial document content comprises arrangement description data to indicate the document arrangement information; before generating page resources of the webpage to be published, according to document arrangement information and the initial document content, the method further comprises: obtaining the document arrangement information according to the arrangement description data.
2. The method according to claim 1 , wherein before obtaining initial document content of the webpage to be published, the method further comprises: using a lightweight markup language to perform content editing processing to obtain the initial document content of the webpage to be published.
3. The method according to claim 2 , wherein the lightweight markup language comprises Markdown markup language, Textile markup language or reStructured markup language.
4. The method according to claim 1 , wherein after generating page resources of the webpage to be published, according to the document arrangement information and the initial document content, the method further comprises: determining that the content of the webpage to be published undergoes update; obtaining updated document content of the webpage to be published; updating page resources of the webpage to be published, according to the document arrangement information and the updated document content.
5. The method according to claim 4 , wherein the determining that the content of the webpage to be published undergoes update comprises: determining that the content of the webpage to be published undergoes update according to a current document content version identifier of the webpage to be published.
6. An apparatus, comprising one or more processors; a memory; one or more programs stored in the memory and configured to execute the following operation when executed by the one or more processors: obtaining initial document content of a webpage to be published; according to document arrangement information and the initial document content, generating webpage resources of the webpage to be published, wherein the document arrangement information is page resources of a template page, and wherein the page resources of the template page comprises a page main resource and a page sub-resource, wherein the page main resource is a page source code and the page sub-resource is static resources linked by the page main resource, wherein the initial document content comprises arrangement description data to indicate the document arrangement information; before generating page resources of the webpage to be published, according to document arrangement information and the initial document content, the operation further comprises: obtaining the document arrangement information according to the arrangement description data.
7. The apparatus according to claim 6 , wherein before obtaining initial document content of the webpage to be published, the operation further comprises: using a lightweight markup language to perform content editing processing to obtain the initial document content of the webpage to be published.
8. The apparatus according to claim 7 , wherein the lightweight markup language comprises Markdown markup language, Textile markup language or reStructured markup language.
9. The apparatus according to claim 6 , wherein after generating page resources of the webpage to be published, according to the document arrangement information and the initial document content, the operation further comprises: determining that the content of the webpage to be published undergoes update; obtaining updated document content of the webpage to be published; updating page resources of the webpage to be published, according to the document arrangement information and the updated document content.
10. The apparatus according to claim 9 , wherein the operation of determining that the content of the webpage to be published undergoes update comprises: determining that the content of the webpage to be published undergoes update according to a current document content version identifier of the webpage to be published.
11. A non-transitory computer storage medium in which one or more programs are stored, an apparatus being enabled to execute the following operations when said one or more programs are executed by the apparatus: obtaining initial document content of a webpage to be published; according to document arrangement information and the initial document content, generating page resources of the webpage to be published, wherein the document arrangement information is page resources of a template page, and wherein the page resources of the template page comprises a page main resource and a page sub-resource, wherein the page main resource is a page source code and the page sub-resource is static resources linked by the page main resource, wherein the initial document content comprises arrangement description data to indicate the document arrangement information; before generating page resources of the webpage to be published, according to document arrangement information and the initial document content, the operation further comprises: obtaining the document arrangement information according to the arrangement description data.
12. The non-transitory computer storage medium according to claim 11 , wherein before obtaining initial document content of the webpage to be published, the operation further comprises: using a lightweight markup language to perform content editing processing to obtain the initial document content of the webpage to be published.
13. The non-transitory computer storage medium according to claim 12 , wherein the lightweight markup language comprises Markdown markup language, Textile markup language or reStructured markup language.
14. The non-transitory computer storage medium according to claim 11 , wherein after generating page resources of the webpage to be published, according to the document arrangement information and the initial document content, the operation further comprises: determining that the content of the webpage to be published undergoes update; obtaining updated document content of the webpage to be published; updating page resources of the webpage to be published, according to the document arrangement information and the updated document content.
15. The non-transitory computer storage medium according to claim 14 , wherein the operation of determining that the content of the webpage to be published undergoes update comprises: determining that the content of the webpage to be published undergoes update according to a current document content version identifier of the webpage to be published.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
October 30, 2015
September 21, 2021
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.