✏️ 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:
Manny Becerra 2020-08-29 14:14:44 -07:00 committed by GitHub
parent 7df23a427c
commit 56abe606a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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—dont 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—dont 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!

View File

@ -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);