Skip to content

Commit

Permalink
fix typeerror in config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hideckies committed Nov 15, 2023
1 parent ca37cdf commit 009f0b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Deno environment
uses: denoland/setup-deno@v1
Expand All @@ -27,5 +27,5 @@ jobs:
uses: denoland/deployctl@v1
with:
project: "hideckies-exploit-notes"
import-map: "./import_map.json"
import-map: "./deno.json"
entrypoint: serve.ts
3 changes: 1 addition & 2 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ site.process([".html"], async (page: any) => {
if (page.data.type === 'exploit' && page.document) {
const tocElem = page.document.querySelector('.toc');

const toc = page.data.toc;
page.data.toc.forEach(c => {
page.data.toc.forEach((c: any) => {
if (c.level === 2) {
const aElem = page.document.createElement('a');
aElem.setAttribute("href", `#${c.slug}`);
Expand Down

1 comment on commit 009f0b6

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 009f0b6 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Relative import path "lume/middlewares/not_found.ts" not prefixed with / or ./ or ../ and not in import map from "file:///src/serve.ts"

Please sign in to comment.