mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Moved the lib folder into content
This commit is contained in:
parent
823f662743
commit
e80428ec2b
@ -4,7 +4,7 @@ const { pick } = require('lodash');
|
|||||||
const actions = require('./actions');
|
const actions = require('./actions');
|
||||||
const File = require('./file');
|
const File = require('./file');
|
||||||
const { TYPE } = require('./resolve');
|
const { TYPE } = require('./resolve');
|
||||||
const getImageDimensions = require('../lib/dimensions');
|
const getImageDimensions = require('./lib/dimensions');
|
||||||
const getVideoDimensions = require('get-video-dimensions');
|
const getVideoDimensions = require('get-video-dimensions');
|
||||||
|
|
||||||
const RESOLUTIONS = [ 2048, 1024, 768, 576, 300, 100 ];
|
const RESOLUTIONS = [ 2048, 1024, 768, 576, 300, 100 ];
|
||||||
|
@ -4,7 +4,7 @@ const fs = require('fs-extra');
|
|||||||
const { memoize: memoizeSync } = require('lodash');
|
const { memoize: memoizeSync } = require('lodash');
|
||||||
const memoizeAsync = require('memoizepromise');
|
const memoizeAsync = require('memoizepromise');
|
||||||
const { resolve, readFile } = require('./resolve');
|
const { resolve, readFile } = require('./resolve');
|
||||||
const { hasOwn, isFunction } = require('../lib/util');
|
const { hasOwn, isFunction } = require('./lib/util');
|
||||||
const revHash = require('rev-hash');
|
const revHash = require('rev-hash');
|
||||||
const revPath = require('rev-path');
|
const revPath = require('rev-path');
|
||||||
|
|
||||||
|
@ -31,14 +31,14 @@ const markdownEngines = {
|
|||||||
permalinkSymbol: '<img src="/images/svg/paragraph.svg">',
|
permalinkSymbol: '<img src="/images/svg/paragraph.svg">',
|
||||||
slugify,
|
slugify,
|
||||||
})
|
})
|
||||||
.use(require('../lib/markdown-raw-html')),
|
.use(require('./lib/markdown-raw-html')),
|
||||||
|
|
||||||
preview: markdownIt({
|
preview: markdownIt({
|
||||||
html: false,
|
html: false,
|
||||||
linkify: false,
|
linkify: false,
|
||||||
typographer: true,
|
typographer: true,
|
||||||
})
|
})
|
||||||
.use(require('../lib/markdown-token-filter')),
|
.use(require('./lib/markdown-token-filter')),
|
||||||
};
|
};
|
||||||
|
|
||||||
function markdown (mode, input, env) {
|
function markdown (mode, input, env) {
|
||||||
|
@ -2,7 +2,7 @@ const { chunk, uniq, difference } = require('lodash');
|
|||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const { resolve } = require('./resolve');
|
const { resolve } = require('./resolve');
|
||||||
const log = require('fancy-log');
|
const log = require('fancy-log');
|
||||||
const tweetparse = require('../lib/tweetparse');
|
const tweetparse = require('./lib/tweetparse');
|
||||||
const Twitter = require('twitter-lite');
|
const Twitter = require('twitter-lite');
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ const File = require('./file');
|
|||||||
const actions = require('./actions');
|
const actions = require('./actions');
|
||||||
const { URL } = require('url');
|
const { URL } = require('url');
|
||||||
const { resolve, readFile, isCleanUrl, ENGINE } = require('./resolve');
|
const { resolve, readFile, isCleanUrl, ENGINE } = require('./resolve');
|
||||||
const { isObject } = require('../lib/util');
|
const { isObject } = require('./lib/util');
|
||||||
|
|
||||||
const pkg = require(resolve('package.json'));
|
const pkg = require(resolve('package.json'));
|
||||||
const frontmatter = require('front-matter');
|
const frontmatter = require('front-matter');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const glob = require('../lib/glob');
|
const glob = require('./lib/glob');
|
||||||
const { groupBy, keyBy, filter, find, get, memoize } = require('lodash');
|
const { groupBy, keyBy, filter, find, get, memoize } = require('lodash');
|
||||||
const { ROOT, kind, KIND } = require('./resolve');
|
const { ROOT, kind, KIND } = require('./resolve');
|
||||||
const File = require('./file');
|
const File = require('./file');
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const ROOT = path.resolve(__dirname, '../..');
|
const ROOT = path.resolve(__dirname, '../..');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const { is: _is } = require('../lib/util');
|
const { is: _is } = require('./lib/util');
|
||||||
|
|
||||||
function is (...args) {
|
function is (...args) {
|
||||||
const fn = _is(...args);
|
const fn = _is(...args);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const glob = require('../lib/glob');
|
const glob = require('./lib/glob');
|
||||||
const { ROOT, readFile } = require('./resolve');
|
const { ROOT, readFile } = require('./resolve');
|
||||||
const actions = require('./actions');
|
const actions = require('./actions');
|
||||||
const File = require('./file');
|
const File = require('./file');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const glob = require('../lib/glob');
|
const glob = require('./lib/glob');
|
||||||
const { ROOT, readFile, resolve } = require('./resolve');
|
const { ROOT, readFile, resolve } = require('./resolve');
|
||||||
const actions = require('./actions');
|
const actions = require('./actions');
|
||||||
const File = require('./file');
|
const File = require('./file');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const glob = require('../lib/glob');
|
const glob = require('./lib/glob');
|
||||||
const { ROOT } = require('./resolve');
|
const { ROOT } = require('./resolve');
|
||||||
const actions = require('./actions');
|
const actions = require('./actions');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user