From e30c8952bf84add34102fd4b1424da282d2084a1 Mon Sep 17 00:00:00 2001 From: kgryte Date: Sat, 16 Nov 2019 21:45:38 -0800 Subject: [PATCH] Add a workaround for https://github.com/unifiedjs/unified-engine/issues/41 --- .remarkignore | 31 +++++++++++++++++++ .../make/lib/examples/markdown_javascript.mk | 3 +- tools/make/lib/lint/markdown/remark.mk | 3 +- tools/make/lib/markdown/equations.mk | 3 +- tools/make/lib/markdown/namespace_toc.mk | 3 +- 5 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .remarkignore diff --git a/.remarkignore b/.remarkignore new file mode 100644 index 000000000000..f765538a3961 --- /dev/null +++ b/.remarkignore @@ -0,0 +1,31 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2017 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# Directories # +############### +build/ +downloads/ +reports/ +tmp/ +.git + +# Only the top-level node_modules directory: +/node_modules/ + +# Nested node_modules directories below the project node_modules directory: +lib/node_modules/**/node_modules/ diff --git a/tools/make/lib/examples/markdown_javascript.mk b/tools/make/lib/examples/markdown_javascript.mk index 315cb129ecf9..3ba85e815cab 100644 --- a/tools/make/lib/examples/markdown_javascript.mk +++ b/tools/make/lib/examples/markdown_javascript.mk @@ -22,7 +22,8 @@ REMARK_RUN_JAVASCRIPT_EXAMPLES_CONF ?= $(CONFIG_DIR)/remark/.remarkrc.js # Define the path to the remark ignore file: -REMARK_RUN_JAVASCRIPT_EXAMPLES_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore +# REMARK_RUN_JAVASCRIPT_EXAMPLES_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore FIXME +REMARK_RUN_JAVASCRIPT_EXAMPLES_IGNORE ?= $(ROOT)/.remarkignore # Define the path to a plugin which processes JavaScript examples in Markdown files: REMARK_RUN_JAVASCRIPT_EXAMPLES_PLUGIN ?= $(TOOLS_PKGS_DIR)/remark/plugins/remark-run-javascript-examples diff --git a/tools/make/lib/lint/markdown/remark.mk b/tools/make/lib/lint/markdown/remark.mk index b5929e832154..30fa716c5abd 100644 --- a/tools/make/lib/lint/markdown/remark.mk +++ b/tools/make/lib/lint/markdown/remark.mk @@ -25,7 +25,8 @@ MARKDOWN_LINT ?= $(REMARK) REMARK_CONF ?= $(CONFIG_DIR)/remark/.remarkrc.js # Define the path to the remark ignore file: -REMARK_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore +# REMARK_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore FIXME +REMARK_IGNORE ?= $(ROOT)/.remarkignore # Define the command-line options when invoking the remark executable: MARKDOWN_LINT_FLAGS ?= \ diff --git a/tools/make/lib/markdown/equations.mk b/tools/make/lib/markdown/equations.mk index 5a5a3a48f3f1..afb722705a66 100644 --- a/tools/make/lib/markdown/equations.mk +++ b/tools/make/lib/markdown/equations.mk @@ -37,7 +37,8 @@ EQUATION_RESOURCES_PATH ?= ./docs/img/ REMARK_EQUATIONS_CONF ?= $(CONFIG_DIR)/remark/.remarkrc.js # Define the path to the remark ignore file: -REMARK_EQUATIONS_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore +# REMARK_EQUATIONS_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore FIXME +REMARK_EQUATIONS_IGNORE ?= $(ROOT)/.remarkignore # Define the path to the local remark plugins directory: REMARK_LOCAL_PLUGINS_DIR ?= $(TOOLS_PKGS_DIR)/remark/plugins diff --git a/tools/make/lib/markdown/namespace_toc.mk b/tools/make/lib/markdown/namespace_toc.mk index 968b9f2e2dcb..0c36a48e64a4 100644 --- a/tools/make/lib/markdown/namespace_toc.mk +++ b/tools/make/lib/markdown/namespace_toc.mk @@ -28,7 +28,8 @@ GIT_COMMIT_TOCS ?= $(GIT_COMMIT) -m $(GIT_COMMIT_MESSAGE_TOCS) REMARK_TOC_CONF ?= $(CONFIG_DIR)/remark/.remarkrc.js # Define the path to the remark ignore file: -REMARK_TOC_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore +# REMARK_TOC_IGNORE ?= $(CONFIG_DIR)/remark/.remarkignore FIXME +REMARK_TOC_IGNORE ?= $(ROOT)/.remarkignore # Define the path to the local remark plugins directory: REMARK_LOCAL_PLUGINS_DIR ?= $(TOOLS_PKGS_DIR)/remark/plugins