mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-23 00:47:51 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
14
doc/.markdownlint/require_helper.js
Normal file
14
doc/.markdownlint/require_helper.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Look up the global node modules directory.
|
||||
*
|
||||
* Because we install markdownlint packages globally
|
||||
* in the Docker image where this runs, we need to
|
||||
* provide the path to the global install location
|
||||
* when referencing global functions from our own node
|
||||
* modules.
|
||||
*
|
||||
* Image:
|
||||
* https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/dockerfiles/gitlab-docs-lint-markdown.Dockerfile
|
||||
*/
|
||||
const { execSync } = require('child_process');
|
||||
module.exports.globalPath = execSync('yarn global dir').toString().trim() + '/node_modules/';
|
@ -1,4 +1,9 @@
|
||||
const { forEachLine, getLineMetadata, isBlankLine } = require(`markdownlint-rule-helpers`);
|
||||
const { globalPath } = require('../require_helper');
|
||||
const {
|
||||
forEachLine,
|
||||
getLineMetadata,
|
||||
isBlankLine,
|
||||
} = require(`${globalPath}/markdownlint-rule-helpers`);
|
||||
|
||||
module.exports = {
|
||||
names: ['tabs-blank-lines'],
|
||||
|
@ -1,4 +1,5 @@
|
||||
const { forEachLine, getLineMetadata } = require(`markdownlint-rule-helpers`);
|
||||
const { globalPath } = require('../require_helper');
|
||||
const { forEachLine, getLineMetadata } = require(`${globalPath}/markdownlint-rule-helpers`);
|
||||
|
||||
module.exports = {
|
||||
names: ['tabs-title-markup'],
|
||||
|
@ -1,4 +1,9 @@
|
||||
const { forEachLine, getLineMetadata, isBlankLine } = require(`markdownlint-rule-helpers`);
|
||||
const { globalPath } = require('../require_helper');
|
||||
const {
|
||||
forEachLine,
|
||||
getLineMetadata,
|
||||
isBlankLine,
|
||||
} = require(`${globalPath}/markdownlint-rule-helpers`);
|
||||
|
||||
module.exports = {
|
||||
names: ['tabs-title-text'],
|
||||
|
Reference in New Issue
Block a user