diff --git a/web/paged_article/Main.tscn b/web/paged_article/Main.tscn new file mode 100644 index 0000000..830c351 --- /dev/null +++ b/web/paged_article/Main.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://WebServerSimple.gd" type="Script" id=1] + +[node name="Main" type="Node"] + +[node name="WebServerSimple" type="WebServerSimple" parent="."] +script = ExtResource( 1 ) + +[node name="PagedArticleWebPage" type="PagedArticleWebPage" parent="WebServerSimple"] +uri_segment = "/" +articles_folder = "res://article/" diff --git a/web/paged_article/WebServerSimple.gd b/web/paged_article/WebServerSimple.gd new file mode 100644 index 0000000..9c7d7e9 --- /dev/null +++ b/web/paged_article/WebServerSimple.gd @@ -0,0 +1,16 @@ +extends WebServerSimple + + +# Declare member variables here. Examples: +# var a: int = 2 +# var b: String = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + start() + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta: float) -> void: +# pass diff --git a/web/paged_article/article/01_page.md b/web/paged_article/article/01_page.md new file mode 100644 index 0000000..ac288c0 --- /dev/null +++ b/web/paged_article/article/01_page.md @@ -0,0 +1,11 @@ + +# First page + +## Gets rendered as proper markdown + +First page content. + +![IMage](article_img.png) + + + diff --git a/web/paged_article/article/02_page.md b/web/paged_article/article/02_page.md new file mode 100644 index 0000000..5e2850e --- /dev/null +++ b/web/paged_article/article/02_page.md @@ -0,0 +1,12 @@ + +# Second page + +## Gets rendered as proper markdown + +Second page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_article/article/03_page.md b/web/paged_article/article/03_page.md new file mode 100644 index 0000000..419b796 --- /dev/null +++ b/web/paged_article/article/03_page.md @@ -0,0 +1,12 @@ + +# Third page + +## Gets rendered as proper markdown + +Third page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_article/article/files/article_img.png b/web/paged_article/article/files/article_img.png new file mode 100644 index 0000000..87f1f75 Binary files /dev/null and b/web/paged_article/article/files/article_img.png differ diff --git a/web/paged_article/article/files/article_img.png.import b/web/paged_article/article/files/article_img.png.import new file mode 100644 index 0000000..565b50b --- /dev/null +++ b/web/paged_article/article/files/article_img.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/article_img.png-64f7234b37c39150631b87bf861fe4b9.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://article/files/article_img.png" +dest_files=[ "res://.import/article_img.png-64f7234b37c39150631b87bf861fe4b9.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/web/paged_article/article/summary.md b/web/paged_article/article/summary.md new file mode 100644 index 0000000..0a4e02c --- /dev/null +++ b/web/paged_article/article/summary.md @@ -0,0 +1,16 @@ + +# This is a paged article summary page + +summary.md + +## Gets rendered as proper markdown + +First page content. + +Here's an image: + +![Image](files/article_img.png) + +[Start reading](01_page.md) + + diff --git a/web/paged_article/default_env.tres b/web/paged_article/default_env.tres new file mode 100644 index 0000000..4f08e8f --- /dev/null +++ b/web/paged_article/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment3D" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/web/paged_article/icon.png b/web/paged_article/icon.png new file mode 100644 index 0000000..87f1f75 Binary files /dev/null and b/web/paged_article/icon.png differ diff --git a/web/paged_article/icon.png.import b/web/paged_article/icon.png.import new file mode 100644 index 0000000..a4c02e6 --- /dev/null +++ b/web/paged_article/icon.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/web/paged_article/project.pandemonium b/web/paged_article/project.pandemonium new file mode 100644 index 0000000..6ef22e6 --- /dev/null +++ b/web/paged_article/project.pandemonium @@ -0,0 +1,25 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +[application] + +config/name="Paged Article" +run/main_scene="res://Main.tscn" +config/icon="res://icon.png" + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +vram_compression/import_etc=true +vram_compression/import_etc2=false +environment/default_environment="res://default_env.tres" diff --git a/web/paged_articles/Main.tscn b/web/paged_articles/Main.tscn new file mode 100644 index 0000000..f8954ae --- /dev/null +++ b/web/paged_articles/Main.tscn @@ -0,0 +1,11 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://WebServerSimple.gd" type="Script" id=1] + +[node name="Main" type="Node"] + +[node name="WebServerSimple" type="WebServerSimple" parent="."] +script = ExtResource( 1 ) + +[node name="PagedArticlesWebPage" type="PagedArticlesWebPage" parent="WebServerSimple"] +folder = "res://articles/" diff --git a/web/paged_articles/WebServerSimple.gd b/web/paged_articles/WebServerSimple.gd new file mode 100644 index 0000000..9c7d7e9 --- /dev/null +++ b/web/paged_articles/WebServerSimple.gd @@ -0,0 +1,16 @@ +extends WebServerSimple + + +# Declare member variables here. Examples: +# var a: int = 2 +# var b: String = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + start() + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta: float) -> void: +# pass diff --git a/web/paged_articles/articles/article1/01_page.md b/web/paged_articles/articles/article1/01_page.md new file mode 100644 index 0000000..ac288c0 --- /dev/null +++ b/web/paged_articles/articles/article1/01_page.md @@ -0,0 +1,11 @@ + +# First page + +## Gets rendered as proper markdown + +First page content. + +![IMage](article_img.png) + + + diff --git a/web/paged_articles/articles/article1/02_page.md b/web/paged_articles/articles/article1/02_page.md new file mode 100644 index 0000000..5e2850e --- /dev/null +++ b/web/paged_articles/articles/article1/02_page.md @@ -0,0 +1,12 @@ + +# Second page + +## Gets rendered as proper markdown + +Second page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_articles/articles/article1/03_page.md b/web/paged_articles/articles/article1/03_page.md new file mode 100644 index 0000000..419b796 --- /dev/null +++ b/web/paged_articles/articles/article1/03_page.md @@ -0,0 +1,12 @@ + +# Third page + +## Gets rendered as proper markdown + +Third page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_articles/articles/article1/files/article_img.png b/web/paged_articles/articles/article1/files/article_img.png new file mode 100644 index 0000000..87f1f75 Binary files /dev/null and b/web/paged_articles/articles/article1/files/article_img.png differ diff --git a/web/paged_articles/articles/article1/files/article_img.png.import b/web/paged_articles/articles/article1/files/article_img.png.import new file mode 100644 index 0000000..6c28c2a --- /dev/null +++ b/web/paged_articles/articles/article1/files/article_img.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/article_img.png-bb0705ec07e0bd0461041125c4ba874a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://articles/article1/files/article_img.png" +dest_files=[ "res://.import/article_img.png-bb0705ec07e0bd0461041125c4ba874a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/web/paged_articles/articles/article1/summary.md b/web/paged_articles/articles/article1/summary.md new file mode 100644 index 0000000..0a4e02c --- /dev/null +++ b/web/paged_articles/articles/article1/summary.md @@ -0,0 +1,16 @@ + +# This is a paged article summary page + +summary.md + +## Gets rendered as proper markdown + +First page content. + +Here's an image: + +![Image](files/article_img.png) + +[Start reading](01_page.md) + + diff --git a/web/paged_articles/articles/article2/01_page.md b/web/paged_articles/articles/article2/01_page.md new file mode 100644 index 0000000..ac288c0 --- /dev/null +++ b/web/paged_articles/articles/article2/01_page.md @@ -0,0 +1,11 @@ + +# First page + +## Gets rendered as proper markdown + +First page content. + +![IMage](article_img.png) + + + diff --git a/web/paged_articles/articles/article2/02_page.md b/web/paged_articles/articles/article2/02_page.md new file mode 100644 index 0000000..5e2850e --- /dev/null +++ b/web/paged_articles/articles/article2/02_page.md @@ -0,0 +1,12 @@ + +# Second page + +## Gets rendered as proper markdown + +Second page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_articles/articles/article2/03_page.md b/web/paged_articles/articles/article2/03_page.md new file mode 100644 index 0000000..419b796 --- /dev/null +++ b/web/paged_articles/articles/article2/03_page.md @@ -0,0 +1,12 @@ + +# Third page + +## Gets rendered as proper markdown + +Third page content. + +![IMage](article_img.png) + + + + diff --git a/web/paged_articles/articles/article2/files/article_img.png b/web/paged_articles/articles/article2/files/article_img.png new file mode 100644 index 0000000..87f1f75 Binary files /dev/null and b/web/paged_articles/articles/article2/files/article_img.png differ diff --git a/web/paged_articles/articles/article2/files/article_img.png.import b/web/paged_articles/articles/article2/files/article_img.png.import new file mode 100644 index 0000000..b4d512c --- /dev/null +++ b/web/paged_articles/articles/article2/files/article_img.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/article_img.png-3b736821a974ec63ea3a43a88f59890f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://articles/article2/files/article_img.png" +dest_files=[ "res://.import/article_img.png-3b736821a974ec63ea3a43a88f59890f.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/web/paged_articles/articles/article2/summary.md b/web/paged_articles/articles/article2/summary.md new file mode 100644 index 0000000..0a4e02c --- /dev/null +++ b/web/paged_articles/articles/article2/summary.md @@ -0,0 +1,16 @@ + +# This is a paged article summary page + +summary.md + +## Gets rendered as proper markdown + +First page content. + +Here's an image: + +![Image](files/article_img.png) + +[Start reading](01_page.md) + + diff --git a/web/paged_articles/default_env.tres b/web/paged_articles/default_env.tres new file mode 100644 index 0000000..4f08e8f --- /dev/null +++ b/web/paged_articles/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment3D" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/web/paged_articles/icon.png b/web/paged_articles/icon.png new file mode 100644 index 0000000..87f1f75 Binary files /dev/null and b/web/paged_articles/icon.png differ diff --git a/web/paged_articles/icon.png.import b/web/paged_articles/icon.png.import new file mode 100644 index 0000000..a4c02e6 --- /dev/null +++ b/web/paged_articles/icon.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/web/paged_articles/project.pandemonium b/web/paged_articles/project.pandemonium new file mode 100644 index 0000000..6ef22e6 --- /dev/null +++ b/web/paged_articles/project.pandemonium @@ -0,0 +1,25 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +[application] + +config/name="Paged Article" +run/main_scene="res://Main.tscn" +config/icon="res://icon.png" + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +vram_compression/import_etc=true +vram_compression/import_etc2=false +environment/default_environment="res://default_env.tres"