Skip to content

Commit

Permalink
w3c to web
Browse files Browse the repository at this point in the history
  • Loading branch information
fnwinter committed Oct 4, 2024
1 parent 2fc3fee commit d3b2ffc
Show file tree
Hide file tree
Showing 24 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion cnas/genhtml/builder/body_builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag

class body_builder(tag):
def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/builder/footer_builder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag

__FOOTER__ =\
"""
Expand Down
4 changes: 2 additions & 2 deletions cnas/genhtml/builder/head_builder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from genhtml.w3c.head import head
from genhtml.w3c.tag import tag
from genhtml.web.head import head
from genhtml.web.tag import tag

__HEAD__=\
"""
Expand Down
8 changes: 4 additions & 4 deletions cnas/genhtml/builder/music_builder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from genhtml.w3c.tag import tag
from genhtml.w3c.figure import figure
from genhtml.w3c.div import div
from genhtml.w3c.image import image
from genhtml.web.tag import tag
from genhtml.web.figure import figure
from genhtml.web.div import div
from genhtml.web.image import image

__MUSIC_CARD__ =\
"""
Expand Down
6 changes: 3 additions & 3 deletions cnas/genhtml/builder/navibar_builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from genhtml.w3c.tag import tag
from genhtml.w3c.anchor import anchor
from genhtml.w3c.hr import hr
from genhtml.web.tag import tag
from genhtml.web.anchor import anchor
from genhtml.web.hr import hr

__NAVIBAR_HEAD__ =\
"""
Expand Down
8 changes: 4 additions & 4 deletions cnas/genhtml/builder/photo_builder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from genhtml.w3c.tag import tag
from genhtml.w3c.figure import figure
from genhtml.w3c.div import div
from genhtml.w3c.image import image
from genhtml.web.tag import tag
from genhtml.web.figure import figure
from genhtml.web.div import div
from genhtml.web.image import image

class photo_builder(tag):
auto_index = 0
Expand Down
4 changes: 2 additions & 2 deletions cnas/genhtml/bulma/image_modal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from genhtml.w3c.tag import tag
from genhtml.w3c.div import div
from genhtml.web.tag import tag
from genhtml.web.div import div

__IMAGE_MODAL__=\
"""
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/anchor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class anchor(tag):
Expand Down
4 changes: 2 additions & 2 deletions cnas/genhtml/web/body.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class body(tag):
def __init__(self, *args, **kwargs):
"""
create body tag
>>> from genhtml.w3c.body import body
>>> from genhtml.web.body import body
>>> _body = body()
>>> str(_body)
'<body></body>'
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/br.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class br(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class button(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/div.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class div(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/figure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class figure(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/head.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class head(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/hr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class hr(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/html.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class html(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class image(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/para.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class para(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class script(tag):
Expand Down
2 changes: 1 addition & 1 deletion cnas/genhtml/web/section.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from genhtml.w3c.tag import tag
from genhtml.web.tag import tag


class section(tag):
Expand Down
4 changes: 2 additions & 2 deletions cnas/pages/error.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pages.page import page

from genhtml.w3c.html import html
from genhtml.w3c.div import div
from genhtml.web.html import html
from genhtml.web.div import div

from genhtml.head_builder import head_builder
from genhtml.body_builder import body_builder
Expand Down
10 changes: 5 additions & 5 deletions cnas/pages/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from util.system_path import get_gallery_thumbnail_path
from util.path_util import rel_path

from genhtml.w3c.html import html
from genhtml.w3c.section import section
from genhtml.w3c.div import div
from genhtml.w3c.para import para
from genhtml.w3c.br import br
from genhtml.web.html import html
from genhtml.web.section import section
from genhtml.web.div import div
from genhtml.web.para import para
from genhtml.web.br import br

from genhtml.head_builder import head_builder
from genhtml.body_builder import body_builder
Expand Down
12 changes: 6 additions & 6 deletions cnas/pages/index.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from pages.page import page

from genhtml.w3c.html import html
from genhtml.w3c.body import body
from genhtml.w3c.para import para
from genhtml.w3c.div import div
from genhtml.web.html import html
from genhtml.web.body import body
from genhtml.web.para import para
from genhtml.web.div import div

from genhtml.w3c.script import script
from genhtml.w3c.button import button
from genhtml.web.script import script
from genhtml.web.button import button

from genhtml.head_builder import head_builder

Expand Down
10 changes: 5 additions & 5 deletions cnas/pages/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from util.config_path import get_music_path
from util.path_util import rel_path

from genhtml.w3c.html import html
from genhtml.w3c.section import section
from genhtml.w3c.div import div
from genhtml.w3c.para import para
from genhtml.w3c.br import br
from genhtml.web.html import html
from genhtml.web.section import section
from genhtml.web.div import div
from genhtml.web.para import para
from genhtml.web.br import br

from genhtml.head_builder import head_builder
from genhtml.body_builder import body_builder
Expand Down

0 comments on commit d3b2ffc

Please sign in to comment.