Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ability to add config File to repository to control some of the behavior. #6

Open
Maximinodotpy opened this issue Mar 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Maximinodotpy
Copy link
Owner

Maximinodotpy commented Mar 30, 2023

Config File

Ideas for options

Categories

Categories should be added if they don't exist, and it should be possible to supply a name, slug, and description. It should also be possible to say that all other categories should be deleted.

Custom Resolver

This option should point to a .PHP file that contains a function that could act as a resolver. If this option Is set and the file does exist, it will show up in the WordPress Settings and can be chosen.

Default Frontmatter Data

This option should be an object where the keys represent the Frontmatter Keys in the Articles so that you can set your own default values. This could be used, for example, to make all articles Pages ba default or to auto-publish all articles.

Glob Pattern

This is currently set within WordPress, but If I add more things to this config.file, it would make sense to move this info here.

Name

The file will be called gitdown.json and should be located in the project's root.

Defaults

{
   "categories": [],
   "force_categories": false,
   "custom_resolver": false,
   "frontmatter_defaults": {},
   "glob": "**/*.md"
}

What other ideas do you have?

@Maximinodotpy Maximinodotpy added the enhancement New feature or request label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant