1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00
elua/doc/docdata.lua

250 lines
9.2 KiB
Lua
Raw Normal View History

-- 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 project" (menu separator)
{ { "eLua project", "Projeto eLua" } },
-- "Overview"
{ { "Overview", "Apresentação" }, "overview.html",
{
2010-01-25 23:43:05 +00:00
{ { "What is eLua?", "O que é eLua ?" }, "overview.html#whatis" },
{ { "Features", "Características" }, "overview.html#features" },
{ { "Audience", "Público Alvo" }, "overview.html#audience" },
{ { "Authors", "Autores" }, "overview.html#authors" },
{ { "Contacts","Contatos" }, "overview.html#contacts" },
2010-11-10 12:24:35 +00:00
{ { "License", "Licença" },"overview.html#license" },
}
},
-- "Community"
{ { "Community", "Comunidade" }, "comunity.html",
{
{ { "Discussion Lists", "Listas de Discussão" }, "comunity.html#lists" },
{ "Forums", "comunity.html#forums" },
{ "IRC", "comunity.html#irc" },
2011-02-02 17:52:12 +00:00
{ "Twitter", "comunity.html#twitter" },
{ "Wiki", "comunity.html#userswiki" },
{ { "Credits", "Créditos" }, "comunity.html#credits" },
{ "Donations", "comunity.html#donations" },
{ nil, "forum.html", nil, "Forum" } -- "hidden" entry (doesn't appear in the menu)
}
},
-- News
{ { "News", "Notícias" }, "news.html" },
2010-11-10 12:24:35 +00:00
-- Media
{ "Media", "media.html" },
2011-02-02 17:52:12 +00:00
-- Wiki
{ "eLua Wiki", "http://wiki.eluaproject.net" },
-- Web builder
{ "eLua Web builder", "http://builder.eluaproject.net" },
-- Tracker
{ "eLua bug tracker", "http://tracker.eluaproject.net" },
-- "Status"
{ "Status", "status.html",
{
{ { "Supported platforms", "Plataformas Suportadas" }, "status.html" },
{ "System timer support", "status.html#systmr" },
{ { "Modules per platform table", "Módulos por plataforma" }, "status.html#plat_modules" },
{ { "Modules overview status", "Visão geral dos módulos" }, "status.html#gen_modules" },
{ { "Roadmap", "Planejamento Futuro" }, "status.html#roadmap" }
}
},
-- "Using eLua" -- Menu Separator
2010-01-25 23:43:05 +00:00
{ { "Using eLua", "Usando eLua"}, nil },
{ "Downloads", "downloads.html", -- ### How come it opens downloads.html without specifying here ? :) Nice but unclear.
{
{ { "Binaries", "Binários" }, "downloads.html#binaries" },
{ { "Source code", "Código Fonte" }, "downloads.html#source",
{
{ { "Official releases", "Versões Oficiais" }, "downloads.html#official" },
{ "Bleeding edge (SVN)", "downloads.html#svnpublic" },
{ { "Developers", "Desenvolvedores" }, "downloads.html#svndev" },
}
},
{ { "Old versions", "Versões Anteriores" }, "dl_old.html",
{
2011-02-02 17:52:12 +00:00
{ "0.7", "dl_old.html#v070" },
2010-01-25 23:43:05 +00:00
{ "0.6", "dl_old.html#v060" },
{ "0.5", "dl_old.html#v050" },
{ "0.4.1", "dl_old.html#v041" },
{ "0.4", "dl_old.html#v04" },
{ "0.3", "dl_old.html#v03" },
{ "0.2", "dl_old.html#v02" },
{ "0.1", "dl_old.html#v01" },
{ { "Version history", "Histórico das Versões" }, "versionhistory.html" },
}
},
},
},
2010-01-25 23:43:05 +00:00
{ { "Generic info", "Doc Genérica" }, "using.html",
{
2010-01-25 23:43:05 +00:00
{ { "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" },
2010-01-25 23:43:05 +00:00
{ "LuaRPC", "using.html#rpc" },
{ "The serial multiplexer", "sermux.html" }
},
},
{ { "Code examples", "Exemplos de Código" }, "examples.html" },
2010-01-25 23:43:05 +00:00
{ { "FAQ", "Perguntas Frequentes (FAQ)" }, "faq.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" }
2010-01-25 23:43:05 +00:00
}
},
{ "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" },
},
},
},
2010-01-25 23:43:05 +00:00
},
{ { "Platform info", "Doc Específica" }, "installing.html",
{
{ "AT91SAM7x", "installing_at91sam7x.html" },
{ "AVR32", "installing_avr32.html" },
{ "i386", "installing_i386.html" },
{ "LM3S", "installing_lm3s.html" },
{ "LPC2888", "installing_lpc2888.html" },
{ "STR7", "installing_str7.html" },
{ "STR9", "installing_str9.html" },
{ "STM32", "installing_stm32.html" },
{ "LPC2468", "installing_lpc2468.html" }
},
},
-- "eLua internals" (menu separator)
{ { "eLua internals", "Arquitetura de eLua" } },
-- "Overview"
{ { "Overview", "Visão Geral" }, "arch_overview.html",
{
2010-01-25 23:43:05 +00:00
{ { "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" },
2010-01-25 23:43:05 +00:00
{ { "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" },
2010-01-25 23:43:05 +00:00
{ { "LTR (Lua Tiny RAM) in eLua", "LTR (Lua Tiny RAM) em eLua" }, "arch_ltr.html" },
{ "EGC (Emergency GC) in eLua", "elua_egc.html" },
{ { "Booting on a PC", "Bootando num PC" }, "tut_bootpc.html" },
{ { "Booting from a PenDrive", "Bootando de um Pen-Drive" }, "tut_bootstick.html" },
{ { "Using OpenOCD", "Usando OpenOCD" }, "tut_openocd.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" },
2010-01-25 23:43:05 +00:00
-- "Platform modules" (automatically generated)
{ { "Platform modules", "Módulos Específicos" }, "refman_dep.html",
{
2010-01-25 23:43:05 +00:00
{ "lm3s", "modules_lm3s.html", "refman_ps_lm3s" },
2011-02-02 17:52:12 +00:00
{ "str9", "modules_str9.html", "refman_ps_str9" },
{ "mbed", "modules_mbed.html", "refman_ps_mbed" },
{ "mizar32", "modules_mizar32.html", "refman_ps_mizar32" },
}
}
}
-- 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 =
{
"style1.css",
2009-10-19 21:03:56 +00:00
"menu.css",
"images/",
"ddlevelsfiles/"
}
-- Return our whole data defined above
return menu, translations, fixed