mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
✏️ Updates "defintion" to "definition" in CONTRIBUTING docs and create-empty-definitions util (#285)
Co-authored-by: Manny Becerra <mannybecerra@users.noreply.github.com>
This commit is contained in:
parent
7df23a427c
commit
56abe606a8
@ -25,7 +25,7 @@ Below we describe two ways for you to get started: through [issues](#version-1-i
|
|||||||
|
|
||||||
### Version 1: Issues
|
### Version 1: Issues
|
||||||
|
|
||||||
If you know a word that should be defined, but—for whatever reason—don’t feel confident writing the definition yourself (or maybe you disagree with an existing defintion), please [open an issue](https://github.com/tatianamac/selfdefined/issues/new). We can then collectively figure out how to best get this word defined.
|
If you know a word that should be defined, but—for whatever reason—don’t feel confident writing the definition yourself (or maybe you disagree with an existing definition), please [open an issue](https://github.com/tatianamac/selfdefined/issues/new). We can then collectively figure out how to best get this word defined.
|
||||||
|
|
||||||
An issue might also be appropriate if you are unsure about some nuances of a definition you want to define. By opening an issue you start a conversation, and that is always a good thing!
|
An issue might also be appropriate if you are unsure about some nuances of a definition you want to define. By opening an issue you start a conversation, and that is always a good thing!
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import { promisify } from 'util';
|
|||||||
const writeFile = promisify(fs.writeFile);
|
const writeFile = promisify(fs.writeFile);
|
||||||
|
|
||||||
import { words } from './undefined-words';
|
import { words } from './undefined-words';
|
||||||
const defintionPath = path.resolve(process.cwd(), '11ty/definitions/');
|
const definitionPath = path.resolve(process.cwd(), '11ty/definitions/');
|
||||||
|
|
||||||
const template = `
|
const template = `
|
||||||
---
|
---
|
||||||
@ -29,7 +29,7 @@ export function createDefinitions() {
|
|||||||
.trim();
|
.trim();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await writeFile(`${defintionPath}/${slug}.md`, content, 'utf8');
|
await writeFile(`${definitionPath}/${slug}.md`, content, 'utf8');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user