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

206-research-the-possibility-to-include-assets-in-mdx-documentation-files #217

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/clear_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Clear cache

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

permissions:
actions: write

jobs:
clear-cache:
runs-on: ubuntu-latest
steps:
- name: Clear cache
uses: actions/github-script@v6
with:
script: |
console.log("About to clear")
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
for (const cache of caches.data.actions_caches) {
console.log(cache)
github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
}
console.log("Clear completed")
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
<h3>Using v-model</h3>
<ifx-search-bar v-model="searchBarQuery" style="width: 100%" show-close-button="true"></ifx-search-bar>
<p>Search bar 1: {{ searchBar1 }}</p>
<h3>One-way data binding</h3>
<ifx-search-bar @ifxChange="handleSearch2" style="width: 100%" show-close-button="true"></ifx-search-bar>
<p>Search bar 2: {{ searchBar2 }}</p>

<br />
</div>
Expand All @@ -24,7 +21,6 @@
<script setup>
import { computed, ref } from 'vue'

const searchBar2 = ref('');
const searchBar1 = ref('');
const searchInput = ref('');

Expand All @@ -43,11 +39,6 @@ const searchBarQuery = computed({
}
});

function handleSearch2(event) {
console.log("handling search 2", event)
searchBar2.value = event.detail?.detail; //search input emits an event and the search bar, so it needs to be accessed this way
}


function handleSearch1(event) {
console.log("handling search 1", event)
Expand Down
5 changes: 3 additions & 2 deletions packages/components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import remarkGfm from 'remark-gfm';

module.exports = {
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
"stories": ["../src/**/*.stories.@(js|jsx|ts|tsx)", "../src/**/*.mdx"],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand All @@ -24,6 +24,7 @@ module.exports = {
options: {}
},
docs: {
autodocs: true,
autodocs: 'tag',
defaultName: 'Development',
}
};
22 changes: 21 additions & 1 deletion packages/components/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import {defineCustomElements} from '../loader';
import { defineCustomElements } from '../loader';


defineCustomElements();
Expand All @@ -12,4 +12,24 @@ export const parameters = {
date: /Date$/,
},
},
options: {
storySort: {
order: [
// 'About',
'Setup & installation',
[
'Getting started',
'Framework integration',
[
'Wrapper Components',
'React + Stencil',
'Vue + Stencil'
]
],
'Components',
'Documentation',
// 'Contact'
]
}
}
}
Loading