

import inspect
import os
import sys

from .. import DATA_PATH
from ..style import StyleSheetFile

from .matcher import matcher


__all__ = ['matcher', 'sphinx', 'sphinx_base14']


STYLESHEETS_PATH = os.path.join(DATA_PATH, 'stylesheets')


def path(filename):
    return os.path.join(STYLESHEETS_PATH, filename)


sphinx = StyleSheetFile(path('sphinx.rts'))

sphinx_article = StyleSheetFile(path('sphinx_article.rts'))

sphinx_base14 = StyleSheetFile(path('base14.rts'))


# generate docstrings for the StyleSheet instances

for name, stylesheet in inspect.getmembers(sys.modules[__name__]):
    if not isinstance(stylesheet, StyleSheetFile):
        continue
    stylesheet.__doc__ = (':entry point name: ``{}``\n\n{}'
                          .format(stylesheet, stylesheet.description))



import inspect
import os
import sys

from .. import DATA_PATH
from ..style import StyleSheetFile

from .matcher import matcher


__all__ = ['matcher', 'sphinx', 'sphinx_base14']


STYLESHEETS_PATH = os.path.join(DATA_PATH, 'stylesheets')


def path(filename):
    return os.path.join(STYLESHEETS_PATH, filename)


sphinx = StyleSheetFile(path('sphinx.rts'))

sphinx_article = StyleSheetFile(path('sphinx_article.rts'))

sphinx_base14 = StyleSheetFile(path('base14.rts'))


# generate docstrings for the StyleSheet instances

for name, stylesheet in inspect.getmembers(sys.modules[__name__]):
    if not isinstance(stylesheet, StyleSheetFile):
        continue
    stylesheet.__doc__ = ('{}\n\nEntry point name: ``{}``'
                          .format(stylesheet.description, stylesheet))

Fix the auto-generated docstrings of style sheets
Fix the auto-generated docstrings of style sheets

  
  
  import inspect
  import os
  import sys
  
  from .. import DATA_PATH
  from ..style import StyleSheetFile
  
  from .matcher import matcher
  
  
  __all__ = ['matcher', 'sphinx', 'sphinx_base14']
  
  
  STYLESHEETS_PATH = os.path.join(DATA_PATH, 'stylesheets')
  
  
  def path(filename):
      return os.path.join(STYLESHEETS_PATH, filename)
  
  
  sphinx = StyleSheetFile(path('sphinx.rts'))
  
  sphinx_article = StyleSheetFile(path('sphinx_article.rts'))
  
  sphinx_base14 = StyleSheetFile(path('base14.rts'))
  
  
  # generate docstrings for the StyleSheet instances
  
  for name, stylesheet in inspect.getmembers(sys.modules[__name__]):
      if not isinstance(stylesheet, StyleSheetFile):
          continue
-     stylesheet.__doc__ = (':entry point name: ``{}``\n\n{}'
+     stylesheet.__doc__ = ('{}\n\nEntry point name: ``{}``'
-                           .format(stylesheet, stylesheet.description))
+                           .format(stylesheet.description, stylesheet))
  
Fix the auto-generated docstrings of style sheets
## Code Before:


import inspect
import os
import sys

from .. import DATA_PATH
from ..style import StyleSheetFile

from .matcher import matcher


__all__ = ['matcher', 'sphinx', 'sphinx_base14']


STYLESHEETS_PATH = os.path.join(DATA_PATH, 'stylesheets')


def path(filename):
    return os.path.join(STYLESHEETS_PATH, filename)


sphinx = StyleSheetFile(path('sphinx.rts'))

sphinx_article = StyleSheetFile(path('sphinx_article.rts'))

sphinx_base14 = StyleSheetFile(path('base14.rts'))


# generate docstrings for the StyleSheet instances

for name, stylesheet in inspect.getmembers(sys.modules[__name__]):
    if not isinstance(stylesheet, StyleSheetFile):
        continue
    stylesheet.__doc__ = (':entry point name: ``{}``\n\n{}'
                          .format(stylesheet, stylesheet.description))

## Instruction:
Fix the auto-generated docstrings of style sheets
## Code After:


import inspect
import os
import sys

from .. import DATA_PATH
from ..style import StyleSheetFile

from .matcher import matcher


__all__ = ['matcher', 'sphinx', 'sphinx_base14']


STYLESHEETS_PATH = os.path.join(DATA_PATH, 'stylesheets')


def path(filename):
    return os.path.join(STYLESHEETS_PATH, filename)


sphinx = StyleSheetFile(path('sphinx.rts'))

sphinx_article = StyleSheetFile(path('sphinx_article.rts'))

sphinx_base14 = StyleSheetFile(path('base14.rts'))


# generate docstrings for the StyleSheet instances

for name, stylesheet in inspect.getmembers(sys.modules[__name__]):
    if not isinstance(stylesheet, StyleSheetFile):
        continue
    stylesheet.__doc__ = ('{}\n\nEntry point name: ``{}``'
                          .format(stylesheet.description, stylesheet))
