/[sudobot]/trunk/docs/actions/pageinfo.ts
ViewVC logotype

Diff of /trunk/docs/actions/pageinfo.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 631 by rakinar2, Sat Sep 7 09:38:45 2024 UTC revision 632 by rakinar2, Thu Oct 10 17:53:11 2024 UTC
# Line 24  export async function getPageInfo(pathna Line 24  export async function getPageInfo(pathna
24    
25      const urlEncodedPath = `docs/app${      const urlEncodedPath = `docs/app${
26          pathname === "/" ? "" : "/(docs)"          pathname === "/" ? "" : "/(docs)"
27      }${pathname.trim() + (pathname === "/" ? "/" : "")}page.${pageExtension}`;      }${pathname.trim() + (pathname[pathname.length - 1] !== "/" || pathname === "/" ? "/" : "")}page.${pageExtension}`;
28    
29      const githubURL = pathname      const githubURL = pathname
30          ? `https://api.github.com/repos/onesoft-sudo/sudobot/commits?path=${encodeURIComponent(urlEncodedPath)}&sha=${encodeURIComponent(branch)}`          ? `https://api.github.com/repos/onesoft-sudo/sudobot/commits?path=${encodeURIComponent(urlEncodedPath)}&sha=${encodeURIComponent(branch)}`

Legend:
Removed from v.631  
changed lines
  Added in v.632

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26