Skip to content

πŸ§‘β€πŸš€ An integration for Astro that automatically updates the date field of your MDX files whenever they are modified.

License

Notifications You must be signed in to change notification settings

rperezll/AstroDateSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AstroDateSync Integration

Note

Please note that this is an experimental tool, and while it may work well in most cases, it is still under development and subject to change.

πŸ€” Description

AstroDateSync is an integration for Astro that automatically updates the publishDate field in the frontmatter of your .mdx files whenever they are modified, ensuring your documentation content reflects the most current update date.

πŸ› οΈ Installation

npm i astro-date-sync --save-dev

πŸ§‘β€πŸš€ Configuration

The AstroDateSync element exported by the library is of type AstroIntegration, which means it is designed to be used in the integrations array of your astro.config.ts file:

import { AstroDateSync } from 'astro-date-sync';

export default defineConfig({
    integrations: [
        AstroDateSync('src/docs')
    ]
});

Once our astro.config is configured, the library will automatically listen for changes in our MDX files to update their publishDate parameter.

πŸ“ License

About

πŸ§‘β€πŸš€ An integration for Astro that automatically updates the date field of your MDX files whenever they are modified.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published