Skip to content

Commit

Permalink
Merge pull request #99 from yel-hadd/master
Browse files Browse the repository at this point in the history
[TCR-566] Support Badge and deprecated HTML elements as custom elements in VuePress
  • Loading branch information
yel-hadd authored Jan 17, 2025
2 parents 564f184 + 970dfe1 commit 9686004
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 33 deletions.
33 changes: 24 additions & 9 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { defineUserConfig, viteBundler } from "vuepress";
import theme from "./theme";
import plugins from "./config-user/plugins";
import headFunctions from "./headFunctions";
import { defineUserConfig, viteBundler } from 'vuepress';
import theme from './theme';
import plugins from './config-user/plugins';
import headFunctions from './headFunctions';

export default defineUserConfig({
theme,
markdown: {
headers: {
level: [2, 3, 4, 5],
},
anchor: {
anchor: {
permalink: true,
permalinkBefore: true,
permalinkSymbol: '#',
Expand All @@ -19,19 +19,34 @@ export default defineUserConfig({
bundler: viteBundler({
viteOptions: {
ssr: {
noExternal: ["vue-select", "vue-multiselect"],
noExternal: ['vue-select', 'vue-multiselect'],
},
},
vuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: (tag) => {
// List of deprecated HTML tags to treat as custom elements
// Add any other custom elements to this list
const customElements = [
'Badge', 'center', 'font', 'big', 'small', 'strike', 'tt',
'marquee', 'blink', 'applet', 'frameset', 'frame', 'dir',
];
return customElements.includes(tag);
},
},
},
},
}),
head: headFunctions,
scrollBehavior(to, from, savedPosition) {
scrollBehavior(to, from, savedPosition) {
if (to.hash) {
return {
el: to.hash,
behavior: 'smooth',
top: 80, // Adjust based on your header height
}
};
}
return savedPosition || { top: 0 }
return savedPosition || { top: 0 };
},
});
58 changes: 34 additions & 24 deletions docs/features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,33 +236,43 @@ Since the module is fresh, it is in experimental mode – disabled by default fo
Now two options can be used to control how brute force protection works for Dovecot:

<table>
<tr>
<th colspan="2">Condition</th>
<th rowspan="2">Behavior</th>
</tr >
<tr >
<td>PAM.exim_dovecot_protection</td>
<td>PAM.exim_dovecot_native</td>
</tr>
<tr >
<td><center>false</center></td>
<td><center>any</center></td>
<thead>
<tr>
<th colspan="2">Condition</th>
<th rowspan="2">Behavior</th>
</tr>
<tr>
<td>PAM.exim_dovecot_protection</td>
<td>PAM.exim_dovecot_native</td>
</tr>
</thead>
<tbody>
<tr>
<td><center>false</center></td>
<td><center>any</center></td>
<td>Dovecot protection <b>disabled</b></td>
</tr>
<tr >
<td><center>true</center></td>
<td><center>false</center></td>
<td>Dovecot protection <b>enabled</b> (default)
<ul><li>PAM-based module</li></ul>
</tr>
<tr>
<td><center>true</center></td>
<td><center>false</center></td>
<td>
Dovecot protection <b>enabled</b> (default)
<ul>
<li>PAM-based module</li>
</ul>
</td>
</tr>
<tr>
<td><center>true</center></td>
<td><center>true</center></td>
<td>Dovecot protection <b>enabled</b>
<ul><li>Native module ON</li></ul>
</tr>
<tr>
<td><center>true</center></td>
<td><center>true</center></td>
<td>
Dovecot protection <b>enabled</b>
<ul>
<li>Native module ON</li>
</ul>
</td>
</tr>
</tr>
</tbody>
</table>

The following commands can be used to control the Dovecot native module:
Expand Down

0 comments on commit 9686004

Please sign in to comment.