Coder Social home page Coder Social logo

ntno / mkdocs-terminal Goto Github PK

View Code? Open in Web Editor NEW
81.0 81.0 1.0 10.28 MB

monospace theme for MkDocs

Home Page: https://ntno.github.io/mkdocs-terminal/

License: MIT License

Makefile 2.30% HTML 13.85% CSS 18.89% Python 53.88% Jinja 5.55% JavaScript 5.54%
mkdocs mkdocs-theme

mkdocs-terminal's People

Contributors

ntno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kinostl

mkdocs-terminal's Issues

inconsistent toc rendering

sometimes shows #, ##, and ### in toc
other times just # and ##

is it just depth that matters? not the actual number of hashes?

review accessibility of linked image tile

see https://webaim.org/blog/alt-text-and-linked-images/
comment from article:

Title is intended to provide supplementary information. If title is necessary for accessibility, then it is therefor NOT supplementary.

and

see https://usability.yale.edu/web-accessibility/articles/images

Image links should describe the purpose of the link, and must never describe the image.

and

https://usability.yale.edu/web-accessibility/articles/links

Image Links
In general, content editors should avoid using images as links. If an image functions as a link, the image must have alt text that conveys the location and purpose of the link. The alt text should not describe the image. Treat image links as links, not as images.

also:

adding an ordered list causes side effect in footnotes

when an ordered list is added to a markdown page, any footnotes start counting at the next number following the end of the ordered list

Reproduction

when a unordered list is included, footnotes start at the number 1:

unordered-list-included

when a ordered list is included, footnotes start where the ordered list left off:

ordered-list-included

with ordered list:

1. First item
1. Second item
1. Third item
    1. Indented item
    1. Indented item
1. Fourth item 

Environment

  • Version of this theme used: 3.7.0
  • Version of MkDocs used 1.4.2
  • Other relevant versions (pip packages, OS, browser): firefox, see attached pip-install.txt

if md_in_html is enabled, render tile captions using markdown

Describe the problem you'd like to have solved

I would like to be able to enter markdown for a tile caption and have it be rendered in the final tile grid

Describe the ideal solution

if the tile.caption is markdown then it should render correctly when md_in_html extension is enabled

ex:
tile.caption: Figure 8, *Misc. Project Notes*, pages 82, 83.
then 'Misc. Project Notes' should be in italics

Alternatives and current work-arounds

current workaround is to use html tags
ex:
tile.caption: Figure 8, <i>Misc. Project Notes</i>, pages 82, 83.

Additional context

Screen Shot 2023-01-09 at 5 59 32 PM
Screen Shot 2023-01-09 at 5 59 16 PM

prepare for beta release

Describe the problem you'd like to have solved

  • remove temporary debug feature
    • documentation/local.yml
    • macros/debug.j2
    • partials/debug.html
    • base.html
  • update pyproject.toml classifier
  • #73
  • investigate:

allow markdown file as tile link_href

Describe the problem you'd like to have solved

i should be able to provide a markdown file name as the tile link_href

Describe the ideal solution

run link_href value through mkdocs url filter?

Alternatives and current work-arounds

have been providing a relative "directory" link. ie ./gruvbox-dark/ instead of ./gruvbox-dark.md

document mkdocs-git-revision-date-plugin support

Describe the problem you'd like to have solved

The theme supports mkdocs-git-revision-date-plugin however there are no instructions on how to set it up

Describe the ideal solution

add plugins/ folder with index and git revision page
(similar to extensions/ docs)

Additional context

  • add info about needing to add requirement
  • add info about updating mkdocs.yml
  • add pytests to confirm hide_git_revision_date functionality

documentation: change 'supported plugin' to 'suggested'

not sure we should say 'supported plugins'.... we don't necessarily want to promise to always and forever work with the listed plugins.
not necessarily willing to fix any issue that crops up related to plugin.
change to 'tested'? something to just indicate that it was reviewed and will probably work

could not load libtidy --- can't run pytests on windows-latest github action runner

Description

when pytests run on windows-latest github action runner i get the following error:


self = <tidylib.tidy.Tidy object at 0x00000200870C3070>
lib_names = ['libtidy', 'libtidy.so', 'libtidy-0.99.so.0', 'cygtidy-0-99-0', 'tidylib', 'libtidy.dylib', ...]

    def __init__(self, lib_names=None):
        self._tidy = None
        if lib_names is None:
            lib_names = ctypes.util.find_library('tidy') or LIB_NAMES
        if isinstance(lib_names, str):
            lib_names = [lib_names]
        for name in lib_names:
            try:
                self._tidy = load_library(name)
                break
            except OSError:
                continue
        if self._tidy is None:
>           raise OSError(
                "Could not load libtidy using any of these names: "
                + ",".join(lib_names))
E           OSError: Could not load libtidy using any of these names: libtidy,libtidy.so,libtidy-0.99.so.0,cygtidy-0-99-0,tidylib,libtidy.dylib,tidy

.tox\py\lib\site-packages\tidylib\tidy.py:97: OSError

(see attached for full log)

Reproduction

install tidy with soop:

      - if: ${{ matrix.platform == 'windows-latest' }}
        name: Install scoop (Windows)
        uses: MinoruSekine/setup-scoop@main
        with: 
          scoop_update: false
      - if: ${{ matrix.platform == 'windows-latest' }}
        name: Install test requirements (windows)
        run: |
          scoop install tidy

then run pytest from tox.ini:

commands = 
    pytest {tty:--color=yes} tests {posargs}

References

#58
countergram/pytidylib#33

Environment

  • windows-latest github action runner
  • pytidylib-0.3.2.tar.gz (via pip)
  • tidy-5.8.0-win64.zip (via scoop)

from scoop install:

Installing 'tidy' (5.8.0) [64bit] from main bucket
Downloading https://github.com/htacg/tidy-html5/releases/download/5.8.0/tidy-5.8.0-win64.zip (1.3 MB)...
Checking hash of tidy-5.8.0-win64.zip ... ok.
Extracting tidy-5.8.0-win64.zip ... done.
Linking ~\scoop\apps\tidy\current => ~\scoop\apps\tidy\5.8.0
Creating shim for 'tidy'.
'tidy' (5.8.0) was installed successfully!
HTML Tidy for Windows version 5.8.0

add optional floating "go to top" button

Describe the problem you'd like to have solved

pages can get quite long and it takes a lot of scrolling to get back up to the table of contents and the side nav.

Describe the ideal solution

there should be an option to add a "go to top" button which would move the screen to the table of contents and/or top of the page

optional no robot meta

<meta name="robots" content="noindex">

what is this for / what does it do
do we need it in the theme? should it be optional?

automated tests

we need automated testing for the theme

example use cases:
unit scenario
when tile.j2 macro is used to create a UI component but the required tile attributes are not included, no UI component is rendered

integration scenario
when palette: dark is set in mkdocs.yml, then dark.css should be loaded

i don't have a lot of experience doing automated testing for frontend projects so any help here would be extremely appreciated. even just a pointer in the direction of a simple example project would be helpful.


update: 1/17/23

  • unit automation suites are set up

current todos:

  • test section.indexes feature
  • test side navigation menu
  • test top navigation menu

update: 1/21/23

  • mocking
  • initial top nav tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.