Skip to content
#

styleguide

Here are 723 public repositories matching this topic...

Zamiell
Zamiell commented Apr 7, 2020
  1. The users of this style guide will probably expect that all of the rules that it prescribes will be enforced by eslint. However, this is not the case - there is a secret, non-documented segmentation where some rules are enforced and others are not, because they would be "too noisy on a legacy codebase". An example of a problematic rule like this is covered in issue #2020. I propose that all of
storybook
lancevalour
lancevalour commented Oct 23, 2019

Describe the bug
In the config.js addParameters function, if I set isFullscreen: true and open the webpage, it is fullscreen on startup. But if I set isFullscreen: false and open the webpage again, it is still full-screen on startup.

To Reproduce

  1. Set isFullscreen: true, open the webpage,
  2. Close the webpage or stop the server
  3. Set isFullscreen: false, open the webpa
goldbergyoni
goldbergyoni commented Jan 26, 2020

Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.

You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.

At first, we want to collect ideas for best practices, solidify a list

react-styleguidist
benwiley4000
benwiley4000 commented Feb 7, 2019

When upgrading to the beta I got this error:

./docs_helpers/DocsWrapper.js
Module not found: Can't resolve 'react-styleguidist/lib/rsg-components/StyleGuide/StyleGuideRenderer'

When I change the path to react-styleguidist/lib/client/rgs-components... it compiled.

Since these module locations have been treated as public API (for overrides), their change in location should be d

McSinyx
McSinyx commented Feb 5, 2020

As discussed/hijacked in #344, I proposed to have an option to limit the length of docstring and comments:

  1. Multi-line docstring: max_doc_length, default to max_line_length (current behavior)
  2. Single-line docstring: max_single_doc_length, default to max_doc_length + 3 if max_doc_length is set, otherwise to max_line_length
  3. Comment block: max_comment_length, default to `max
MicahElliott
MicahElliott commented Feb 25, 2020

Parentheses are not required when using the threading macros for functions having no argument specified, so use them only when necessary.

;; good
(-> x fizz :foo first frob)

;; bad; parens add clutter and are not needed
(-> x (fizz) (:foo) (first) (frob))

;; good, parens are necessary with an arg
(-> x
    (fizz a b) 
    :foo
    first 
    (frob x y))
catalog
Jordan-Morrison
Jordan-Morrison commented Mar 2, 2020

The Catalog docs say:

By default, Catalog integrates with Create React App and next.js. Run create-catalog in the same directory as you’ve set up your app.

Upon doing so it installs everything with no errors and says:

Run yarn run catalog-start to get started.

After running yarn run catalog-start I'm getting the following: ```Error: Cannot find module 'babel-plugin-react-requ

style-dictionary
custa1200
custa1200 commented Oct 7, 2019

One of the consumers of our system uses curly braces for content replacement in strings.

Due to the way that SD currently uses curly braces in the build process there is no way I can have a string that includes the braces for consumption.

I have tried a number of ways to escape the braces with no luck

Other languages and templating systems seem to use the concept of using double curly b

jhilden
jhilden commented Aug 20, 2015

For bigger styleguides it's very nice to have a fixed sidebar navigation to:
a) navigate to other parts of the styleguide
b) see where you are in the styleguide

This code inside my main .lsg file already works pretty decently:

@javascript-after transpiler: coffee-script
  $ ->
    $nav = $('<nav id="toc" class="lsg--toc"></nav>')

    $.each $('.lsg--anchor'), (index, anchor) ->
      $anc

Improve this page

Add a description, image, and links to the styleguide topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the styleguide topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.