Giter Site home page Giter Site logo

docs's Introduction

commitd

Committed commitd

docs's People

Contributors

chrisflatley avatar steven-committed avatar stuarthendren avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docs's Issues

Presentation

Add the ability of a markdown page to be treated like a slide show.

Suggest

----

slides: true
usual stuff
----

# Slide 1

---

# Slide 2

The slide would be rendered in the content pane when clicked on. This approach has the benefit that:

  • We can embedded slides into our slides. They are probably very good for 'getting started' content. Ideally the side menu could be optionally hidden.
  • We use the same plugin for single presentation (if there's only one page the side menu should be auto hidden).

For inspiration.

Possible formidable spectacles, etc could be used for rendering.

Use index.md(x) within a nested directory

Current behaviour allows:

nested.md <- matches name of dir
nested/
   hello.md

Allow index.md to be used instead

nested/
   index.md <- same content as nested.md above
   help.md

Benefit is that the documentation will still work if nested (dir) is renamed. Also it keeps content about nested under nested/.

Keyboard shortcuts

At least:

  • Prev / Next page (arrows left/right)

Possible

  • Prev/Next section (directory - arrows up/down)
  • Toggle side menu
  • Home

Move to semantic-release

What problem do you want to solve?

Automate the release process

What do you think is the correct solution to this problem?

Use semantic-release

MDX / MD issue (Index.html is not built on new projects)

What happened?

Mdx vs Mx seems to have broken Markdown only sites.

If you have docs/index.md then index.html is not generated when built. So the resulting site is totally broken, although development seems to work.

If you have docs/index.mdx then you get an index.html.

I also get numerous errors (with 3.14):

warn The GraphQL query in the non-page component "/app/node_modules/@committed/gatsby-theme-docs/src/layout/docs.tsx" will not be run.
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.

If the failing component(s) is a regular component and not intended to be a page
component, you generally want to use a <StaticQuery> (https://gatsbyjs.org/docs/static-query)
instead of exporting a page query.

If you're more experienced with GraphQL, you can also export GraphQL
fragments from components and compose the fragments in the Page component
query and pass data down into the child component โ€” https://graphql.org/learn/queries/#fragments

And then basically no pages output.

What did you expect to happen?

md and mdx behave the same.

Any relevant technical information (OS, versions, logs)?

gatsby 3.14.5, node 16 and docs 3.1.0.

Note this works on gatsby 3.8.0, so must be an API change.
However, I have found it almost impossible to get 3.8.0 pinned with npm. When running Docker npm ci I often get 3.14 which causes this bug to occur.

Possible related:

Search deoes not work

I can see the index is created and it arrives at the Search component, the actual stuff does not return any results.

Possibl worth trying a new search engine - that ones doesn't look too active and is a fork of a dead project.

Mermaid stateDiagrans with fork join don't render

Probably an issue upstream with remark / mermaidjs plugin, you can't use fork join in the stateDiagram.

Example (from the mermaidjs website)

```mermaid
 stateDiagram
    state fork_state <<fork>>
      [*] --> fork_state
      fork_state --> State2
      fork_state --> State3

      state join_state <<join>>
      State2 --> join_state
      State3 --> join_state
      join_state --> State4
      State4 --> [*]
```

I suspect this is something to do with the <<

Warning: The tag <undefined> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
    in undefined (created by MDXCreateElement)
    in MDXCreateElement (created by MDXContent)
    in wrapper (created by MDXCreateElement)
    in MDXCreateElement (created by MDXContent)
    in MDXContent (created by MDXRenderer)
    in MDXRenderer (at Markdown.tsx:30)
    in MDXProvider (at Markdown.tsx:12)
    in Markdown (at docs.tsx:16)
    in main (at Layout.tsx:84)
    in div (created by ForwardRef(Container))
    in ForwardRef(Container) (created by WithStyles(ForwardRef(Container)))
    in WithStyles(ForwardRef(Container)) (at Layout.tsx:83)
    in main (created by Content)
    in Content (at Layout.tsx:82)
    in div (created by Root)
    in Root (at Layout.tsx:59)
    in div (created by ThemeProvider$1)
    in ThemeProvider (created by ThemeProvider$1)
    in ThemeProvider$1 (at Layout.tsx:52)
    in Layout (at docs.tsx:15)
    in _default (created by HotExported_default)
    in AppContainer (created by HotExported_default)
    in HotExported_default (created by PageRenderer)
    in PageRenderer (at json-store.js:93)
    in JSONStore (at root.js:51)
    in RouteHandler (at root.js:73)
    in div (created by FocusHandlerImpl)
    in FocusHandlerImpl (created by Context.Consumer)
    in FocusHandler (created by RouterImpl)
    in RouterImpl (created by Context.Consumer)
    in Location (created by Context.Consumer)
    in Router (created by EnsureResources)
    in ScrollContext (at root.js:64)
    in RouteUpdates (at root.js:63)
    in EnsureResources (at root.js:61)
    in LocationHandler (at root.js:119)
    in LocationProvider (created by Context.Consumer)
    in Location (at root.js:118)
    in Root (at root.js:126)
    in MDXProvider (at wrap-root-element.js:65)
    in MDXScopeProvider (at wrap-root-element.js:64)
    in Unknown
    in Unknown (at wrap-root-element.js:72)
    in _default (at app.js:67)

Mermaid stateDiagram font size

What happened?

Screenshot 2021-12-08 at 11 42 32

What did you expect to happen?

Font to be smaller.

Might need to test other diagram types (the sequenceDiagram seems fine) but perhaps this is that particular instances.

Any relevant technical information (OS, versions, logs)?

Firefox

LInks with .md

What happened?

In Github you have to have .md at the end of a link to navigate, otherwise you get a 404.

e.g. [Link](../another/page.md).

VS Code supports with or with .md.

Docs will 404 if you have the .md.

What did you expect to happen?

I want Docs to behave like VS Code - ie if the link is .md it should be stripped off in Docs.

Then I can navigate the same site in either Docs, via VS Code, or via GitHub.

Any relevant technical information (OS, versions, logs)?

Opening new page does not preserve location in sidebar

If your side bar is taller than the height, then clicking on a page at the bottom will open that page, but the sidebar is scrolled to the top (or reset)

Ideally the position of the sidebar would remain unchained.

Or at least the current selection should be visible (in the middle)

Improve README / setup

Might be just me but setting up wasn't that smooth:

  • Needs a.gitignore (at least with nodemodules, .cache and public)
  • Complains about print section
  • Needs a gatsby-config.js would be nice to have a default there

The gatsby-config.js in the readme is not sufficient:

I wonder if it's possible to have this done automatically when you yarn add?

Autogenerate table of content on a markdown page

Seems like it's built in.

https://www.gatsbyjs.org/packages/gatsby-transformer-remark/#getting-table-of-contents

Perhaps it could be generated queried and then either enabled / disabled by something in the front matter, or perhaps smart based on the number of headings and/or size of the document?

Perhaps it could be put in a right sidebar.... then it's responsively displayed if width allows.

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.