docs/js #26

Merged
GauthierWebDev merged 8 commits from docs/js into main 2025-06-09 13:14:56 +00:00
3 changed files with 33 additions and 37 deletions
Showing only changes of commit 308fda97bb - Show all commits

View File

@ -39,8 +39,6 @@ export default function Tabs(props: {
const [tabs, setTabs] = createSignal<TabType[]>([]); const [tabs, setTabs] = createSignal<TabType[]>([]);
const addTab = (tab: TabType) => { const addTab = (tab: TabType) => {
console.log("Adding tab", tab);
setTabs((prevTabs) => { setTabs((prevTabs) => {
// Append to the end of the array and make sure it's unique // Append to the end of the array and make sure it's unique
if (prevTabs.some((t) => t.value === tab.value)) { if (prevTabs.some((t) => t.value === tab.value)) {
@ -113,7 +111,6 @@ Tabs.Item = (props: {
} }
onMount(() => { onMount(() => {
console.log("Mounting tab", props.label);
tabsContext.addTab({ label: props.label, value: props.value }); tabsContext.addTab({ label: props.label, value: props.value });
}); });

View File

@ -127,10 +127,10 @@ export const navigation: NavigationSection[] = [
title: "Fonctions et portée", title: "Fonctions et portée",
href: "/docs/javascript/fonctions-et-portee", href: "/docs/javascript/fonctions-et-portee",
}, },
{ // {
title: "Le DOM", // title: "Le DOM",
href: "/docs/javascript/dom", // href: "/docs/javascript/dom",
}, // },
], ],
}, },
{ {

View File

@ -25,7 +25,6 @@ export async function data(pageContext: PageContext) {
if (cachePathname === "") cachePathname = "index"; if (cachePathname === "") cachePathname = "index";
const doc = docCache.get(cachePathname); const doc = docCache.get(cachePathname);
console.log(doc);
if (!doc) { if (!doc) {
console.error( console.error(