Skip to content

Commit

Permalink
Change project/package name (#78)
Browse files Browse the repository at this point in the history
- The GitHub folder has been renamed to 'MyST-Parser'
- The package name has been change to 'myst-parser'
- Also changed doc references from Myst to MyST
  • Loading branch information
chrisjsewell committed Feb 25, 2020
1 parent a171075 commit dfaa70e
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 32 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# myst_parser
# MyST-Parser

[![Build Status](https://travis-ci.org/ExecutableBookProject/myst_parser.svg?branch=master)](https://travis-ci.org/ExecutableBookProject/myst_parser)
[![Coverage Status](https://coveralls.io/repos/github/ExecutableBookProject/myst_parser/badge.svg?branch=improvements)](https://coveralls.io/github/ExecutableBookProject/myst_parser?branch=improvements)
[![Build Status](https://travis-ci.org/ExecutableBookProject/MyST-Parser.svg?branch=develop)](https://travis-ci.org/ExecutableBookProject/MyST-Parser)
[![Coverage Status](https://coveralls.io/repos/github/ExecutableBookProject/MyST-Parser/badge.svg?branch=develop)](https://coveralls.io/github/ExecutableBookProject/MyST-Parser?branch=develop)
[![Documentation Status](https://readthedocs.org/projects/myst-parser/badge/?version=latest)](https://myst-parser.readthedocs.io/en/latest/?badge=latest)

An extended commonmark compliant parser, with bridges to docutils & sphinx.

## Usage

```console
pip install -e git+https://github.com/ExecutableBookProject/myst_parser.git#egg=myst_parser[sphinx]
```bash
pip install -e "git+https://github.com/ExecutableBookProject/MyST-Parser.git#egg=myst-parser[sphinx]"
```

Or for package development:

```bash
git clone https://github.com/ExecutableBookProject/myst_parser
cd myst_parser
git clone https://github.com/ExecutableBookProject/MyST-Parser
cd MyST-Parser
git checkout develop
pip install -e .[sphinx,code_style,testing,rtd]
```

Note, this parser currently requires the [ExecutableBookProject/mistletoe](https://github.com/ExecutableBookProject/mistletoe)
fork of mistletoe (included in the above installation).

To use the Myst parser in sphinx, simply add: `extensions = ["myst_parser"]` to your `conf.py`.
To use the MyST parser in Sphinx, simply add: `extensions = ["myst_parser"]` to your `conf.py`.

## Parsed Token Classes

Expand Down Expand Up @@ -71,13 +71,13 @@ Code style is tested using [flake8](http://flake8.pycqa.org),
with the configuration set in `.flake8`,
and code formatted with [black](https://github.com/ambv/black).

Installing with `myst_parser[code_style]` makes the [pre-commit](https://pre-commit.com/)
Installing with `myst-parser[code_style]` makes the [pre-commit](https://pre-commit.com/)
package available, which will ensure this style is met before commits are submitted, by reformatting the code
and testing for lint errors.
It can be setup by:

```shell
>> cd myst_parser
>> cd MyST-Parser
>> pre-commit install
```

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# -- Project information -----------------------------------------------------

project = "Myst Parser"
project = "MyST Parser"
copyright = "2020, Executable Book Project"
author = "Executable Book Project"

Expand Down
4 changes: 2 additions & 2 deletions docs/develop/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Code style is tested using [flake8](http://flake8.pycqa.org),
with the configuration set in `.flake8`,
and code formatted with [black](https://github.com/ambv/black).

Installing with `myst_parser[code_style]` makes the [pre-commit](https://pre-commit.com/)
Installing with `myst-parser[code_style]` makes the [pre-commit](https://pre-commit.com/)
package available, which will ensure this style is met before commits are submitted, by reformatting the code
and testing for lint errors.
It can be setup by:

```shell
>> cd myst_parser
>> cd MyST-Parser
>> pre-commit install
```

Expand Down
4 changes: 2 additions & 2 deletions docs/develop/test_infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ The tests are ordered in a hierarchical fashion:
1. In `tests/test_syntax` are tests that check that the source text is being correctly converted to the Markdown ([mistletoe](https://github.com/miyuchina/mistletoe)) AST.
2. In `tests/test_commonmark` the [CommonMark](https://github.com/commonmark/CommonMark.git) test set is run; to check that the parser is complying with the CommonMark specification.
3. In `tests/test_renderers` are tests that check that the Markdown AST is being correctly converted to the docutils/sphinx AST. This includes testing that roles and directives are correctly parsed and run.
4. In `tests/test_sphinx` are tests that check that minimal sphinx project builds are running correctly, to convert myst markdown files to HTML.
5. In `.circleci` the package documentation (written in myst format) is built and tested for build errors/warnings.
4. In `tests/test_sphinx` are tests that check that minimal sphinx project builds are running correctly, to convert MyST markdown files to HTML.
5. In `.circleci` the package documentation (written in MyST format) is built and tested for build errors/warnings.
2 changes: 1 addition & 1 deletion docs/examples/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Example documents

The following pages are examples meant to highlight the functionality of
Myst documents.
MyST documents.

```{toctree}
---
Expand Down
2 changes: 1 addition & 1 deletion docs/using/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Using MyST

The following pages are examples meant to highlight the functionality of
Myst documents.
MyST documents.

```{toctree}
install.md
Expand Down
8 changes: 5 additions & 3 deletions docs/using/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ Installing the MyST parser provides access to two tools:
To install the MyST parser, run the following:

```bash
pip install -e "git+https://github.com/ExecutableBookProject/myst_parser.git#egg=myst_parser[sphinx]"
pip install -e "git+https://github.com/ExecutableBookProject/MyST-Parser.git#egg=myst-parser[sphinx]"
```

Or for package development:

```bash
git clone https://github.com/ExecutableBookProject/myst_parser
cd myst_parser
git clone https://github.com/ExecutableBookProject/MyST-Parser
cd MyST-Parser
git checkout develop
pip install -e .[sphinx,code_style,testing,rtd]
```

This should install the myst fork of mistletoe, along with the Sphinx parser
that is included in the "extensions" configuration of this site.

To use the MyST parser in Sphinx, simply add: `extensions = ["myst_parser"]` to your `conf.py`.
14 changes: 7 additions & 7 deletions docs/using/syntax.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(example_syntax)=

# Example syntax for myst
# Example syntax for MyST

As a base, Myst adheres to the [CommonMark specification](https://spec.commonmark.org/).
As a base, MyST adheres to the [CommonMark specification](https://spec.commonmark.org/).
For this, it uses the [Mistletoe project](https://github.com/miyuchina/mistletoe),
which is a well-structured markdown parser for Python that is CommonMark-compliant
and also extensible.

Myst adds several new syntax options that extend its functionality to be used
MyST adds several new syntax options that extend its functionality to be used
with Sphinx, the documentation generation engine used extensively in the Python
ecosystem. Sphinx uses reStructuredText by default, which is both more
powerful than Markdown, and also (arguably) more complex to use.
Expand Down Expand Up @@ -96,7 +96,7 @@ defines "runnable cells". Here is the basic structure:
---
header-rows: 1
---
* - Myst
* - MyST
- reStructuredText
* - ````markdown
```{directivename} arguments
Expand Down Expand Up @@ -287,7 +287,7 @@ role, use the following form:
---
header-rows: 1
---
* - Myst
* - MyST
- reStructuredText
* - ````markdown
{role-name}`role content`
Expand Down Expand Up @@ -338,14 +338,14 @@ Here is some extra markdown syntax which provides functionality in rST that does
exist in CommonMark. In most cases, these are syntactic short-cuts to calling
roles and directives. We'll cover some common ones below.
This tale describes the rST and Myst equivalents:
This tale describes the rST and MyST equivalents:
````{list-table}
---
header-rows: 1
---
* - Type
- Myst
- MyST
- reStructuredText
* - Math shortcuts
- `$x^2$`
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.0"
__version__ = "0.2.0"


def setup(app):
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/sphinx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MystParser(parsers.Parser):

# these specs are copied verbatim from the docutils RST parser
settings_spec = (
"Myst Parser Options",
"MyST Parser Options",
None,
(
(
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
"""myst_parser package setup."""
"""myst-parser package setup."""
from importlib import import_module

from setuptools import find_packages, setup

setup(
name="myst_parser",
name="myst-parser",
version=import_module("myst_parser").__version__,
description=(
"An extended commonmark compliant parser, " "with bridges to docutils & sphinx."
),
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/ExecutableBookProject/myst_parser",
url="https://github.com/ExecutableBookProject/MyST-Parser",
author="Chris Sewell",
author_email="chrisj_sewell@hotmail.com",
license="MIT",
Expand Down

0 comments on commit dfaa70e

Please sign in to comment.