Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
feat: jargon will now use yaml config instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
filipowm committed Jul 3, 2020
1 parent bf16786 commit 34753fd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 36 deletions.
35 changes: 0 additions & 35 deletions config/jargon.json

This file was deleted.

37 changes: 37 additions & 0 deletions config/jargon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
msf:
name: MSF
long_name: Médecins Sans Frontières / Doctors Without Borders
description: An international, independent, medical humanitarian organization. See
<a href='https://www.msf.org/'>msf.org</a>
markdown:
name: Markdown
description: Very simple and lightweight markup language with plain-text-formatting
syntax.
seo:
name: SEO
long_name: Search Engine Optimization
description: The process of growing the quality and quantity of website traffic
by increasing the visibility of a website or a web page to users of a web search
engine
git:
name: Git
description: Distributed version-control system for tracking changes in source code.It
is designed for coordinating work among programmers, but it can be used to track
changes in any set of files. Its goals include speed, data integrity and support
for distributed, non-linear workflows
api:
name: API
long_name: Application Programming Interface
description: Computing interface which defines interactions between multiple software
intermediaries
saas:
name: SaaS
long_name: Software as a Service
description: Software licensing and delivery model in which software is licensed
on a subscription basis and is centrally hosted and managed
pwa:
name: PWA
long_name: Progressive Web App
description: Web app that uses modern web capabilities to deliver an app-like experience
to users
3 changes: 2 additions & 1 deletion src/utils/jargon-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const jargonData = require('../../config/jargon.json');
const { readYamlOrJson } = require('./fileUtils');
const jargonData = readYamlOrJson(__dirname + '/../../config/jargon.yml');

const validateProperty = (entry, property, key) => {
const value = entry[property];
Expand Down

0 comments on commit 34753fd

Please sign in to comment.