Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent HTML sections based on level. #128

Closed
robertberrington opened this issue Aug 7, 2014 · 4 comments
Closed

Indent HTML sections based on level. #128

robertberrington opened this issue Aug 7, 2014 · 4 comments

Comments

@robertberrington
Copy link

robertberrington commented Aug 7, 2014

It may be helpful to indent sections to improve readability.

@jacebrowning jacebrowning self-assigned this Aug 7, 2014
@jacebrowning jacebrowning added this to the v0.8 milestone Aug 7, 2014
@jacebrowning jacebrowning changed the title Indent html sections based on level Indent HTML sections based on level. Aug 7, 2014
@robertberrington
Copy link
Author

Also, consider also indenting the "text" under each heading.

@jacebrowning
Copy link
Member

This might actually be harder than I originally thought. If you look at the generated HTML, each paragraph and heading is separate. I think the HTML generator would need to be updated to put each item in it's own <div>.

I'm going to move this issue to the backlog until I see a higher priority over other issues.

@jacebrowning jacebrowning modified the milestones: v0.8, backlog Aug 8, 2014
@jacebrowning jacebrowning removed their assignment Aug 8, 2014
@jacebrowning
Copy link
Member

If a separate <div> is created, the highlighting added by #82 can be applied to the whole item.

@jacebrowning jacebrowning modified the milestones: backlog, v0.9 Aug 17, 2014
@jacebrowning jacebrowning modified the milestones: v0.9, backlog Oct 14, 2014
@jacebrowning jacebrowning modified the milestones: backlog, v0.10 Oct 29, 2014
@jacebrowning jacebrowning removed this from the v0.10 milestone Jan 29, 2015
@robertberrington robertberrington removed this from the v0.10 milestone Jan 29, 2015
@jacebrowning jacebrowning modified the milestone: current Jan 29, 2015
ojohnny added a commit to ojohnny/doorstop that referenced this issue Feb 17, 2018
Implements doorstop-dev#128 by using the mdx_outline extension for python-markdown,
which groups every heading into an appropriate <section> tag according
to its header level.
@jacebrowning
Copy link
Member

Closed by #288

@ghost ghost removed the ready label Feb 17, 2018
rickeywang added a commit to rickeywang/doorstop that referenced this issue Apr 24, 2018
* Indent HTML sections based on level

Implements doorstop-dev#128 by using the mdx_outline extension for python-markdown,
which groups every heading into an appropriate <section> tag according
to its header level.

* Remove Python 3.3 support

* Update dependencies

* Update code to comply with latest rules

* Remove pipenv workaround

* Update tooling

* Make output more coherent when using headers

In the newly added 'header' beta feature, the header was added on a
separate line in the Markdown and HTML outputs, like this:

```
## 1.1 REQ002 {#REQ002 }

##Header

Text ...
```

But the 'text' output does something different and puts the header to
the right of the UID.  I believe this is the intended format for this
feature, so this commit changes the above output to:

```
## 1.1 REQ002 Header {#REQ002 }

Text ...
```

The TOC entry in the HTML output is updated accordingly.

* Update wording

* Document that Python 3.4+ is required

* Add 'header' tags to some of the sample requirements

* Add Gitter badge

Closes doorstop-dev#286

* Add icon (linux)

* Put uid to the right of the title

* Only display uid once when no header exists

* Allow user to resize font

* Make some display only field in the UI uneditable

* Add icon (windows)

* Fix crashes related to selected item index in the GUI

Was occuring when:
 - There were no item to select
 - The selected index was greater than the number of items in
   the new document being selected

* main() returns the exit code instead of exiting

* surround self.ignore trigger in try finally block

* Make uid clickable link in the GUI.

This has been done for:
- The items text
- The children links
- The parent links

* Replace Listview outline by a Treeview

* Fix coding standard issues

* Fix GUI tests issues

* Fix GUI tests issues

* Fix GUI tests issues

* Fix GUI tests issues

* Fix coding standard issues

* Disable PyLint duplicate-code check

* Fix coding standard issues

* Fix documentation standard issues

* Split pylint rules on to separate lines

* Bump version to 1.5b1

* Bump version to 1.5b2

* Fix indentation for rST

* Update tooling

* Update tree styling
rickeywang pushed a commit to rickeywang/doorstop that referenced this issue Apr 24, 2018
Implements doorstop-dev#128 by using the mdx_outline extension for python-markdown,
which groups every heading into an appropriate <section> tag according
to its header level.
rickeywang pushed a commit to rickeywang/doorstop that referenced this issue Jul 4, 2019
Implements doorstop-dev#128 by using the mdx_outline extension for python-markdown,
which groups every heading into an appropriate <section> tag according
to its header level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants