mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
* refactor: migrate to common eslint+prettier configs
* fix: prettier frontend
* feat: config changes
* fix: lint issues
* fix: lint
* fix: type imports
* fix: cyclical import issue
* fix: lockfile
* fix: missing dep
* fix: switch to tabs
* fix: continue switch to tabs
* fix: rustfmt parity
* fix: moderation lint issue
* fix: lint issues
* fix: ui intl
* fix: lint issues
* Revert "fix: rustfmt parity"
This reverts commit cb99d2376c.
* feat: revert last rs
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import * as path from 'path'
|
|
|
|
import { repoPath } from './utils'
|
|
|
|
/**
|
|
* The glob pattern to find all markdown articles which should be compiled.
|
|
*/
|
|
export const ARTICLES_GLOB = repoPath('packages/blog/articles/**/*.md')
|
|
|
|
/**
|
|
* The directory where compiled articles are stored.
|
|
*/
|
|
export const COMPILED_DIR = repoPath('packages/blog/compiled')
|
|
export const ROOT_FILE = path.join(COMPILED_DIR, 'index.ts')
|
|
|
|
/**
|
|
* The source directory for public assets used in articles.
|
|
*/
|
|
export const PUBLIC_SRC = repoPath('packages/blog/public')
|
|
|
|
/**
|
|
* An array of git-repository-root-relative paths where public assets should be copied to.
|
|
*/
|
|
export const PUBLIC_LOCATIONS = [repoPath('apps/frontend/src/public/news/article')]
|
|
|
|
/**
|
|
* The git-repository-root-relative path to the frontend RSS feed file.
|
|
*/
|
|
export const RSS_PATH = repoPath('apps/frontend/src/public/news/feed/rss.xml')
|
|
export const JSON_PATH = repoPath('apps/frontend/src/public/news/feed/articles.json')
|
|
|
|
/**
|
|
* The base URL of the Modrinth site, used for the RSS feed.
|
|
*/
|
|
export const SITE_URL = 'https://modrinth.com'
|