File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitepress'
22import hairaGrammar from './haira.tmLanguage.json'
33
4+ const hairaVersion = await fetch ( 'https://api.github.com/repos/mrzdevcore/haira/releases/latest' )
5+ . then ( r => r . json ( ) )
6+ . then ( d => d . tag_name ?? 'latest' )
7+ . catch ( ( ) => 'latest' )
8+
49const sharedNav = ( prefix : string ) => [
510 { text : prefix ? 'Docs' : 'Docs' , link : `${ prefix } /docs/getting-started/installation` } ,
611 { text : 'Examples' , link : `${ prefix } /docs/examples` } ,
712 { text : 'ARP' , link : `${ prefix } /agentic-rendering-protocol` } ,
813 { text : 'Generative UI' , link : `${ prefix } /generative-ui` } ,
914 {
10- text : 'v0.4.0' ,
15+ text : hairaVersion ,
1116 items : [
1217 { text : 'Changelog' , link : 'https://github.com/mrzdevcore/haira/releases' } ,
1318 { text : 'Specification (PDF)' , link : '/haira-spec.pdf' } ,
You can’t perform that action at this time.
0 commit comments