File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ class Nextjs
3
3
class CleanHtmlFilter < Filter
4
4
def call
5
5
css ( '.zola-anchor' ) . remove
6
- doc . prepend_child ( "<h1>htmx </h1>" ) if root_page?
6
+ doc . prepend_child ( "<h1>NextJS </h1>" ) if root_page?
7
7
css ( 'div:contains("NEWS:")' ) . remove
8
8
css ( 'h2:contains("sponsors"), #sponsor-table' ) . remove
9
9
doc
Original file line number Diff line number Diff line change 1
1
module Docs
2
2
class Nextjs < UrlScraper
3
- self . name = 'nextjs` '
3
+ self . name = 'NextJS '
4
4
self . type = 'simple'
5
5
self . release = 'v14.1.0'
6
6
self . base_url = 'https://nextjs.org/docs'
7
- self . initial_paths = %w( reference/ )
8
- html_filters . push 'nextjs/entries' , 'nextjs/clean_html'
7
+ self . initial_paths = %w( reference/ )
8
+ self . links = {
9
+ home : 'https://www.nextjs.org/' ,
10
+ code : 'https://github.com/vercel/next.js'
11
+ }
12
+
13
+ html_filters . push 'nextjs/entries' , 'nextjs/clean_html'
14
+
15
+ options [ :attribution ] = <<-HTML
16
+ © 2024 Vercel, Inc.
17
+ Licensed under the MIT License.
18
+ HTML
9
19
end
10
- end
20
+ end
You can’t perform that action at this time.
0 commit comments