Sidebar display method and system of document system

A sidebar and document technology, applied in the field of sidebar display methods and systems, can solve problems such as inconvenience for users to browse and access documents, inability to form a display effect of folding and unfolding titles, and complex sidebar display results, etc. Improve the user experience, facilitate browsing and understanding, and simplify the display effect

Pending Publication Date: 2020-02-14
北京浪潮数据技术有限公司
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing Docsify online documentation system only supports title display and folding of a single or a few markdown source files
When users use a large number of markdown source files to compile documents, Docsify cannot hierarchically fold and display the titles in a large number of markdown source files, and the generated sidebar table of contents will have titles of all levels, and the title cannot be folded and expanded. The display effect leads to complicated display results in the sidebar, making it inconvenient for users to browse and access documents

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
  • Sidebar display method and system of document system
  • Sidebar display method and system of document system
  • Sidebar display method and system of document system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0039] see figure 1 , which is a schematic flow chart of a method for displaying a sidebar of a document system provided in an embodiment of the present application.

[0040] It should be noted that the sidebar display method of the document system provided by the embodiment of the present application is applicable to document generation systems, for example, it can be applied to Docsify online document system or other document systems with the same or similar problems.

[0041] In this embodiment, the method may be implemented, for example, through the following steps S101-S103.

[0042] S101: The method pre-obtains information on the level and arrangement order of all titles in the sidebar, and judges the level to which each title belongs and the level of adjacent titles; wherein, when the title has a lower-level title after the title, the The title is determined as a parent-level title; when there is a higher-level title before the title, the title is determined as a sub-l...

no. 2 example

[0057] In the first embodiment above, the title can be folded and unfolded by triggering the title. However, in some scenarios, it is necessary to optimize the display of the title displayed on the sidebar even when the user does not trigger the title. When the user visits the document for the first time, displaying the main title of the document in the sidebar will be more helpful for users to browse and understand the document. In addition, since the title of the online document system has a link to the document page corresponding to the title, when the user triggers the title, the page will jump, and the sidebar needs to be displayed again. Therefore, the present application provides another sidebar display method of the document system. see figure 2 , which is a schematic flow chart of another sidebar display method of a document system provided by the embodiment of the present application.

[0058] In this embodiment, the method may be implemented, for example, throug...

no. 3 example

[0077] The method for displaying the sidebar of the document system provided by the embodiment of the present application has been introduced above, and the method provided by the embodiment of the present application will be introduced below in combination with specific scenarios.

[0078] In this scenario, the documentation system is the Docsify online documentation system. Since when a large number of Markdown source files are used to generate documents, the sidebar of the Docsify online document system will generate all titles, so first call the doneEach function in the Docsify online document system to read the title content in the sidebar and obtain the sidebar The information about the level and arrangement order of the titles, and the parent title and child title are determined by judging the level to which each title belongs and the level of the adjacent titles of the title. The heading level is the heading level rule set when writing a document in Markdown language, ...

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 sidebar display method and system for a document system, and the method comprises the steps: obtaining the information of the levels and arrangement sequences of all titles in a sidebar, judging the level of each title and the level of an adjacent title, and determining a parent title and a child title; judging whether the target title is a parent title or not, and if thetarget title is the parent title, obtaining a display state of a child title under the target title; and determining the current display state of the target title by judging the display state of thesub-title under the target title, and carrying out opposite unfolding or folding operation on the target title. Therefore, by determining the parent titles and the child titles in the sidebars and judging the title categories to which the target titles belong and the unfolding states of the target titles, the user can perform unfolding or folding operation when triggering the parent titles on thedocsify online document system, and the use experience of the user is improved.

Description

technical field [0001] The present application relates to the field of document processing, in particular to a sidebar display method and system of a document system. Background technique [0002] Docsify online document system is a document generation system that generates document websites from document source files written in markdown language. Among them, the Docsify online document system can generate a sidebar table of contents according to the title level defined in the markdown source file, and can display it directly next to the document page, so that users can understand the layout structure of the entire document through the sidebar table of contents, and can edit the markdown The title of the source file is folded to simplify the display of the sidebar table of contents, which is convenient for users to browse and access. [0003] However, the existing Docsify online documentation system only supports title display and folding of a single or a few markdown sourc...

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 Applications(China)
IPC IPC(8): G06F40/166
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