Selaa lähdekoodia

Side menus are now absolute. Anchors with <div id="nnn"> instead of deprecaded <a name="nnn">

Mikael Säker 8 vuotta sitten
vanhempi
commit
825a62c982
3 muutettua tiedostoa jossa 94 lisäystä ja 94 poistoa
  1. 35 35
      docs/en/en.json
  2. 58 58
      docs/ko/ko.json
  3. 1 1
      gulpfile.js

+ 35 - 35
docs/en/en.json

@@ -6,23 +6,23 @@
                 "name": "Tutorials",
                 "items": [
                     {
-                        "path": "runner",
+                        "path": "/tutorials/runner",
                         "name": "Runner"
                     },
                     {
-                        "path": "side-scroller",
+                        "path": "/tutorials/side-scroller",
                         "name": "Side scroller"
                     },
                     {
-                        "path": "platformer",
+                        "path": "/tutorials/platformer",
                         "name": "Platformer"
                     },
                     {
-                        "path": "magic-link",
+                        "path": "/tutorials/magic-link",
                         "name": "Magic link"
                     },
                     {
-                        "path": "car",
+                        "path": "/tutorials/car",
                         "name": "Building a car"
                     }
                 ]
@@ -43,19 +43,19 @@
                         "name": "JCash demos"
                     },
                     {
-                        "path": "main-menu",
+                        "path": "/tutorials/main-menu",
                         "name": "Main menu"
                     },
                     {
-                        "path": "parallax",
+                        "path": "/tutorials/parallax",
                         "name": "Parallax"
                     },
                     {
-                        "path": "hud",
+                        "path": "/tutorials/hud",
                         "name": "Hud"
                     },
                     {
-                        "path": "level-complete",
+                        "path": "/tutorials/level-complete",
                         "name": "Level complete"
                     }
                 ]
@@ -80,19 +80,19 @@
                 "name": "GETTING STARTED",
                 "items": [
                     {
-                        "path": "introduction",
+                        "path": "/manuals/introduction",
                         "name": "Introduction"
                     },
                     {
-                        "path": "scene-editing",
+                        "path": "/manuals/scene-editing",
                         "name": "Scene editing"
                     },
                     {
-                        "path": "workflow",
+                        "path": "/manuals/workflow",
                         "name": "Workflow"
                     },
                     {
-                        "path": "lua",
+                        "path": "/manuals/lua",
                         "name": "Lua in Defold"
                     }
                 ]
@@ -101,15 +101,15 @@
                 "name": "CORE CONCEPTS",
                 "items": [
                     {
-                        "path": "building-blocks",
+                        "path": "/manuals/building-blocks",
                         "name": "Building blocks"
                     },
                     {
-                        "path": "message-passing",
+                        "path": "/manuals/message-passing",
                         "name": "Message passing"
                     },
                     {
-                        "path": "application-lifecycle",
+                        "path": "/manuals/application-lifecycle",
                         "name": "Application lifecycle"
                     }
                 ]
@@ -118,79 +118,79 @@
                 "name": "RESOURCES & COMPONENTS",
                 "items": [
                     {
-                        "path": "2dgraphics",
+                        "path": "/manuals/2dgraphics",
                         "name": "2D graphics"
                     },
                     {
-                        "path": "3dgraphics",
+                        "path": "/manuals/3dgraphics",
                         "name": "3D graphics"
                     },
                     {
-                        "path": "animation",
+                        "path": "/manuals/animation",
                         "name": "Animation"
                     },
                     {
-                        "path": "spine",
+                        "path": "/manuals/spine",
                         "name": "Spine animation"
                     },
                     {
-                        "path": "spinemodel",
+                        "path": "/manuals/spinemodel",
                         "name": "Spine model"
                     },
                     {
-                        "path": "model",
+                        "path": "/manuals/model",
                         "name": "Model (3D)"
                     },
                     {
-                        "path": "particlefx",
+                        "path": "/manuals/particlefx",
                         "name": "Particle FX"
                     },
                     {
-                        "path": "physics",
+                        "path": "/manuals/physics",
                         "name": "Physics"
                     },
                     {
-                        "path": "sound",
+                        "path": "/manuals/sound",
                         "name": "Sound"
                     },
                     {
-                        "path": "font",
+                        "path": "/manuals/font",
                         "name": "Font"
                     },
                     {
-                        "path": "label",
+                        "path": "/manuals/label",
                         "name": "Label"
                     },
                     {
-                        "path": "material",
+                        "path": "/manuals/material",
                         "name": "Material"
                     },
                     {
-                        "path": "rendering",
+                        "path": "/manuals/rendering",
                         "name": "Rendering"
                     },
                     {
-                        "path": "shader",
+                        "path": "/manuals/shader",
                         "name": "Shader"
                     },
                     {
-                        "path": "factory",
+                        "path": "/manuals/factory",
                         "name": "Factory"
                     },
                     {
-                        "path": "collection-factory",
+                        "path": "/manuals/collection-factory",
                         "name": "Collection factory"
                     },
                     {
-                        "path": "collection-proxy",
+                        "path": "/manuals/collection-proxy",
                         "name": "Collection proxy"
                     },
                     {
-                        "path": "live-update",
+                        "path": "/manuals/live-update",
                         "name": "Live update"
                     },
                     {
-                        "path": "camera",
+                        "path": "/manuals/camera",
                         "name": "Camera"
                     }
                 ]

+ 58 - 58
docs/ko/ko.json

@@ -9,23 +9,23 @@
                 "name": "Tutorials",
                 "items": [
                     {
-                        "path": "runner",
+                        "path": "/tutorials/runner",
                         "name": "Runner"
                     },
                     {
-                        "path": "side-scroller",
+                        "path": "/tutorials/side-scroller",
                         "name": "Side scroller"
                     },
                     {
-                        "path": "platformer",
+                        "path": "/tutorials/platformer",
                         "name": "Platformer"
                     },
                     {
-                        "path": "magic-link",
+                        "path": "/tutorials/magic-link",
                         "name": "Magic link"
                     },
                     {
-                        "path": "car",
+                        "path": "/tutorials/car",
                         "name": "Building a car"
                     }
                 ]
@@ -46,19 +46,19 @@
                         "name": "JCash demos"
                     },
                     {
-                        "path": "main-menu",
+                        "path": "/tutorials/main-menu",
                         "name": "Main menu"
                     },
                     {
-                        "path": "parallax",
+                        "path": "/tutorials/parallax",
                         "name": "Parallax"
                     },
                     {
-                        "path": "hud",
+                        "path": "/tutorials/hud",
                         "name": "Hud"
                     },
                     {
-                        "path": "level-complete",
+                        "path": "/tutorials/level-complete",
                         "name": "Level complete"
                     }
                 ]
@@ -83,19 +83,19 @@
                 "name": "GETTING STARTED",
                 "items": [
                     {
-                        "path": "introduction",
+                        "path": "/manuals/introduction",
                         "name": "Introduction"
                     },
                     {
-                        "path": "scene-editing",
+                        "path": "/manuals/scene-editing",
                         "name": "Scene editing"
                     },
                     {
-                        "path": "workflow",
+                        "path": "/manuals/workflow",
                         "name": "Workflow"
                     },
                     {
-                        "path": "lua",
+                        "path": "/manuals/lua",
                         "name": "Lua in Defold"
                     }
                 ]
@@ -104,15 +104,15 @@
                 "name": "CORE CONCEPTS",
                 "items": [
                     {
-                        "path": "building-blocks",
+                        "path": "/manuals/building-blocks",
                         "name": "Building blocks"
                     },
                     {
-                        "path": "message-passing",
+                        "path": "/manuals/message-passing",
                         "name": "Message passing"
                     },
                     {
-                        "path": "application-lifecycle",
+                        "path": "/manuals/application-lifecycle",
                         "name": "Application lifecycle"
                     }
                 ]
@@ -121,79 +121,79 @@
                 "name": "RESOURCES & COMPONENTS",
                 "items": [
                     {
-                        "path": "2dgraphics",
+                        "path": "/manuals/2dgraphics",
                         "name": "2D graphics"
                     },
                     {
-                        "path": "3dgraphics",
+                        "path": "/manuals/3dgraphics",
                         "name": "3D graphics"
                     },
                     {
-                        "path": "animation",
+                        "path": "/manuals/animation",
                         "name": "Animation"
                     },
                     {
-                        "path": "spine",
+                        "path": "/manuals/spine",
                         "name": "Spine animation"
                     },
                     {
-                        "path": "spinemodel",
+                        "path": "/manuals/spinemodel",
                         "name": "Spine model"
                     },
                     {
-                        "path": "model",
+                        "path": "/manuals/model",
                         "name": "Model (3D)"
                     },
                     {
-                        "path": "particlefx",
+                        "path": "/manuals/particlefx",
                         "name": "Particle FX"
                     },
                     {
-                        "path": "physics",
+                        "path": "/manuals/physics",
                         "name": "Physics"
                     },
                     {
-                        "path": "sound",
+                        "path": "/manuals/sound",
                         "name": "Sound"
                     },
                     {
-                        "path": "font",
+                        "path": "/manuals/font",
                         "name": "Font"
                     },
                     {
-                        "path": "label",
+                        "path": "/manuals/label",
                         "name": "Label"
                     },
                     {
-                        "path": "material",
+                        "path": "/manuals/material",
                         "name": "Material"
                     },
                     {
-                        "path": "rendering",
+                        "path": "/manuals/rendering",
                         "name": "Rendering"
                     },
                     {
-                        "path": "shader",
+                        "path": "/manuals/shader",
                         "name": "Shader"
                     },
                     {
-                        "path": "factory",
+                        "path": "/manuals/factory",
                         "name": "Factory"
                     },
                     {
-                        "path": "collection-factory",
+                        "path": "/manuals/collection-factory",
                         "name": "Collection factory"
                     },
                     {
-                        "path": "collection-proxy",
+                        "path": "/manuals/collection-proxy",
                         "name": "Collection proxy"
                     },
                     {
-                        "path": "live-update",
+                        "path": "/manuals/live-update",
                         "name": "Live update"
                     },
                     {
-                        "path": "camera",
+                        "path": "/manuals/camera",
                         "name": "Camera"
                     }
                 ]
@@ -202,31 +202,31 @@
                 "name": "GUI",
                 "items": [
                     {
-                        "path": "gui",
+                        "path": "/manuals/gui",
                         "name": "GUI overview"
                     },
                     {
-                        "path": "gui-text",
+                        "path": "/manuals/gui-text",
                         "name": "Text nodes"
                     },
                     {
-                        "path": "gui-pie",
+                        "path": "/manuals/gui-pie",
                         "name": "Pie nodes"
                     },
                     {
-                        "path": "gui-spine",
+                        "path": "/manuals/gui-spine",
                         "name": "Spine nodes"
                     },
                     {
-                        "path": "gui-templates",
+                        "path": "/manuals/gui-templates",
                         "name": "Template nodes"
                     },
                     {
-                        "path": "gui-clipping",
+                        "path": "/manuals/gui-clipping",
                         "name": "Clipping"
                     },
                     {
-                        "path": "gui-layouts",
+                        "path": "/manuals/gui-layouts",
                         "name": "Layouts"
                     }
                 ]
@@ -235,23 +235,23 @@
                 "name": "GAME LOGIC",
                 "items": [
                     {
-                        "path": "properties",
+                        "path": "/manuals/properties",
                         "name": "Properties"
                     },
                     {
-                        "path": "script-properties",
+                        "path": "/manuals/script-properties",
                         "name": "Script properties"
                     },
                     {
-                        "path": "input",
+                        "path": "/manuals/input",
                         "name": "Input"
                     },
                     {
-                        "path": "debugging",
+                        "path": "/manuals/debugging",
                         "name": "Debugging"
                     },
                     {
-                        "path": "modules",
+                        "path": "/manuals/modules",
                         "name": "Modules"
                     }
                 ]
@@ -260,19 +260,19 @@
                 "name": "PROJECT SETUP",
                 "items": [
                     {
-                        "path": "project-settings",
+                        "path": "/manuals/project-settings",
                         "name": "Project settings"
                     },
                     {
-                        "path": "libraries",
+                        "path": "/manuals/libraries",
                         "name": "Libraries"
                     },
                     {
-                        "path": "texture-profiles",
+                        "path": "/manuals/texture-profiles",
                         "name": "Texture profiles"
                     },
                     {
-                        "path": "bob",
+                        "path": "/manuals/bob",
                         "name": "Bob the builder"
                     }
                 ]
@@ -281,15 +281,15 @@
                 "name": "PLATFORMS",
                 "items": [
                     {
-                        "path": "ios",
+                        "path": "/manuals/ios",
                         "name": "iOS"
                     },
                     {
-                        "path": "android",
+                        "path": "/manuals/android",
                         "name": "Android"
                     },
                     {
-                        "path": "html5",
+                        "path": "/manuals/html5",
                         "name": "HTML5"
                     }
                 ]
@@ -298,19 +298,19 @@
                 "name": "EXTENSIONS",
                 "items": [
                     {
-                        "path": "extensions",
+                        "path": "/manuals/extensions",
                         "name": "Native extensions"
                     },
                     {
-                        "path": "facebook",
+                        "path": "/manuals/acebook",
                         "name": "Facebook"
                     },
                     {
-                        "path": "iap",
+                        "path": "/manuals/iap",
                         "name": "In-app purchases"
                     },
                     {
-                        "path": "push",
+                        "path": "/manuals/push",
                         "name": "Push notifications"
                     }
                 ]

+ 1 - 1
gulpfile.js

@@ -86,7 +86,7 @@ md.renderer.rules.heading_open = function (tokens, idx, options, env, self) {
     }
     var level = tag.match(/^h(\d+)$/)[1];
     env.toc.push({ entry: title, slug: slug, level: level });
-    return '<a name="' + slug + '" class="anchor"></a>' +
+    return '<div id="' + slug + '" class="anchor"></div>' +
             '<' + tag + '>';
 };