1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00
elua/doc/docdata.lua
Dado Sutter 17487f9ebe - doc folder replaced by some work done on Led Lab for the new doc and site
- This should actually be a merge but we made a mistake on the initial repo creation
  and a merge was not possible.
- Below there is a resumed log of the commit messages for the few steps, just for
  the record.

- The merged commit messages for this work are:

 - Removing Portuguese doc content
 - Ignore folder names fixed on .gitignore
 - Removed doc files which content migrated to the CMS
 - docdata.lua updated accordingly
 - Doc build checked ok
 - Overall doc structure and contents still being refined
 - Removing folder cache from git versioning
 - Removing folder dist from git versioning. The folders above are generated by the buildall.lua script and are not part of the sources
 - Adding .gitignore file with objects info to inform git what to ignore
 - Removed file
 - Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
 - Moving all files and folders to a working doc folder
 - Css updated
 - Index page added and CSS adjusts
 - Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
 - Signed-off-by: Guilherme Sanchez <guilhermesanchezpacheco@gmail.com>
 - Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
 - files deleted
 - Changed function that creates functions submenus.
 - Menu inserted with árvore, CSS adjusts, google search
 - Changed past design to new design
 - CSS updated
 - initial import

- The commit ids were also preserved but they are related to this "other"
  work done on Led Lab. We'll keep the repo just in case.

4dce3f77c47b0c3001a2075a946e80ee52759b49 - Removing Portuguese doc content
78d8847525cacf045fe7e672cff6bd1e058a6a4b Ignore folder names fixed on .gitignore
48dee6b7962168ab1098bf709ead6f3cfe6b7964 - Removed doc files which content migrated to the CMS - docdata.lua updated accordingly - Doc build checked ok - Overall doc structure and contents still being refined
2aa2fe0c554db03dbc7029c34d0f4500fe625b37 - Removing folder cache from git versioning - Removing folder dist from git versioning   The folders above are generated by the buildall.lua script and are not part of the sources - Adding .gitignore file with objects info to inform git what to ignore
af6cc2890edf1855af319dc999a03feee5f9bee0 Removed file
6a180e72eb4f4860620cafc0685000e9f2174cfe Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
eb430112e78ae537459ab315e228ebca84bdf2d4 Moving all files and folders to a working doc folder
d28a7c99489915630bd2625f3756fecf0d08ce37 Css updated
32836ffe382f04ab07c3e6f018c7b449a20d7a8d Index page added and CSS adjusts
1461d9957d9d25a1467cb57ab8717aa213a37e8d Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
ae1934c04f35a29e25bb4495ae8a31cd9c000b5b Signed-off-by: Guilherme Sanchez <guilhermesanchezpacheco@gmail.com>
b5f31d70f1fac8d3fba325c9867a03f976775698 Merge branch 'master' of git@repos.giga.puc-rio.br:elua-doc.git
ec9ad8446b7ea38b252c6a416e70774349835e45 files deleted
bd7a80151b2030720ba8d8a303467d8c25a4b4b2 Changed function that creates functions submenus.
6a7494acaec694fadbb13520bcbccc51a6b95dfe Inserido menu com árvore, ajustes no CSS, busca do google
e979f1c259d425c9a3be83f9cda20eddffe073bb Changed past design to new design.
381459e95286886b052103a0253e60b29e064d7a CSS updated
4f81d2f1195efe733fe5f97517be325d75937bc3 initial import
2011-05-06 06:49:21 -03:00

153 lines
5.6 KiB
Lua

-- The eLua documentation structure (main menu) is defined here.
--[[
The menu is defined by an array of { name, link, submenu, title } arrays
'name' can be another array. Names must be the same for all languages, in the same order
as defined in the "languages" from 'buildall.lua'. If 'name' is a string instead
of a table, it will be used in all languages.
'link' is the relative link corresponding to the menu entry.
'submenu' is optional. If specified, it is an array of arrays, just like the main
menu.
'title' is the title of the HTML page associated with the menu entry (specified as
an array in different languages or as a string, just like 'name'). If not given,
it's the same as 'name'.
If 'link' is nil, the entry defines a menu separator.
If 'name' is nil, the entry defines a "hidden menu item": they are part of the template to HTML
generation process, but they don't appear in the menu. These entries NEED A LINK
AND TITLE FIELDS! See the definition of 'forum.html' below for an example of such item.
--]]
local menu =
{
{ { "eLua Documentation"}, "index.html"},
-- "Using eLua" -- Menu Separator
{ { "Generic info", "Doc Genérica" }, "using.html",
{
{ { "Using eLua", "Usando eLua" }, "using.html",
{
{ { "Over UART", "Console via UART" }, "using.html#uart" },
{ { "Over TCP/IP", "Console via TCP/IP" }, "using.html#tcpip" },
{ { "On PC", "Num PC" }, "using.html#pc" },
{ { "The shell", "O Shell" }, "using.html#shell" },
{ "Linenoise", "linenoise.html" },
{ "Cross-compiling", "using.html#cross" },
{ "LuaRPC", "using.html#rpc" },
{ "The serial multiplexer", "sermux.html" }
},
},
{ "eLua file systems", "filesystems.html",
{
{ { "Read-Only FS in MCU Flash", "O ROM File System em Flash" }, "arch_romfs.html" },
{ "R/W FAT FS in SD/MMC Cards", "fatfs.html" },
{ "Remote file system (RFS)", "arch_rfs.html" }
}
},
{ "eLua interrupt handlers", "inthandlers.html",
{
{ "In Lua", "inthandlers.html" },
{ "In C", "inthandlers.html#cints" },
}
},
{ { "Building eLua", "Build de eLua" }, "building.html",
{
{ "Building eLua in Linux", "building_unix.html" },
{ "Building eLua in Windows", "building_win.html" },
},
},
},
},
-- "eLua internals" (menu separator)
{ { "eLua internals" }, "",
{
{ -- "Overview"
{ "Overview", "Visão Geral" }, "arch_overview.html",
{
{ { "eLua's Architecture", "Arquitetura de eLua" }, "arch_overview.html#structure" },
{ { "Common code", "Código Básico" }, "arch_overview.html#common" },
{ { "Interface architecture", "Interfaceamento" }, "arch_overview.html#platform" },
{ { "Booting eLua", "O Boot de eLua" }, "arch_overview.html#boot" },
{ { "Platforms and ports", "Portabilização" }, "arch_overview.html#platforms" },
{ { "Adding a new port", "Portando eLua" }, "arch_newport.html" },
{ "Implementing interrupts", "arch_ints.html",
{
{ "Interrupt list", "arch_ints.html#intlist" }
}
}
}
},
-- Platform interface (automatically generated)
{ { "Platform interface", "Interfaceamento" }, "arch_platform.html", "arch_platform" },
-- Other WRITE THE arch_platform_other.html file
{ { "More information", "Informações Adicionais" }, "#",
{
{ { "Consoles and terminals", "Consoles e Terminais" }, "arch_con_term.html" },
{ { "TCP/IP in eLua", "TCP/IP em eLua" }, "arch_tcpip.html" },
{ { "LTR (Lua Tiny RAM) in eLua", "LTR (Lua Tiny RAM) em eLua" }, "arch_ltr.html" },
{ "EGC (Emergency GC) in eLua", "elua_egc.html" },
{ { "eLua toolchains", "Toolchains para eLua" }, "toolchains.html" },
{ { "Building toolchains", "Build de Toolchains" }, "tchainbuild.html",
{
{ "ARM7 and ARM9", "tc_arm.html" },
{ "ARM Cortex-M3", "tc_cortex.html" },
{ "i386", "tc_386.html" }
},
},
{ { "eLua coding style", "Regras de Codificação" }, "arch_coding.html" },
}
},
}
},
{ -- "Reference manual" (menu separator)
{ "Reference Manual", "Manual de Referência" },"",
{
-- "Generic modules" (automatically generated)
{ { "Generic modules", "Módulos Genéricos" }, "refman_gen.html", "refman_gen" },
-- "Platform modules" (automatically generated)
{ { "Platform modules", "Módulos Específicos" }, "refman_dep.html",
{
{ "lm3s", "modules_lm3s.html", "refman_ps_lm3s" },
{ "str9", "modules_str9.html", "refman_ps_str9" },
{ "mbed", "modules_mbed.html", "refman_ps_mbed" }
}
}
}
}
}
-- Translations for different strings needed by the generator
-- The order of languages is the same as the one defines in the languages array
-- defined at the beginning of buildall.lua
local translations =
{
{ "Overview", "Apresentação" },
{ "Data structures", "Estrutura" },
{ "Functions", "Funções" },
{ "eLua - Embedded Lua", "eLua - Embedded Lua" },
{ "Search", "Pesquisar" },
{ "Language", "Idioma" }
}
-- The "fixed part" are the files/directory that must be present in our final
-- HTML documentation distribution. Directories end with a "/", files don't.
local fixed =
{
"images/",
"js/",
"css/",
}
-- Return our whole data defined above
return menu, translations, fixed