Skip to content

Commit

Permalink
DOCSP-7862: Ignore toctree directive (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Jan 21, 2020
1 parent 753c10c commit 6648732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ComponentFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import RoleProgram from './Roles/Program';
import RoleRef from './Roles/Ref';
import RoleTerm from './Roles/Term';

const IGNORED_NAMES = ['default-domain'];
const IGNORED_NAMES = ['default-domain', 'toctree'];
const IGNORED_TYPES = ['comment', 'substitution_definition', 'target'];

export default class ComponentFactory extends Component {
Expand All @@ -71,7 +71,7 @@ export default class ComponentFactory extends Component {
};
this.componentMap = {
admonition: Admonition,
block_quote: BlockQuote,
blockquote: BlockQuote,
'card-group': CardGroup,
class: CSSClass,
code: Code,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/generate-path-prefix.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const generatePathPrefix = ({ parserBranch, project, snootyBranch, user }) => {
const base = `/${project}/${user}/${parserBranch}`;
return process.env.SNOOTY_DEV ? `/${parserBranch}/${project}/${user}/${snootyBranch}` : base;
return process.env.GATSBY_SNOOTY_DEV ? `/${parserBranch}/${project}/${user}/${snootyBranch}` : base;
};

// TODO: switch to ES6 export syntax if Gatsby implements support for ES6 module imports
Expand Down

0 comments on commit 6648732

Please sign in to comment.