diff --git a/CHANGELOG.md b/CHANGELOG.md index 35f4af2..c4bce52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,20 +10,43 @@ nl -ba Makefile | sed -n '770,790p' grep -n "^[ ]" Makefile | head hmmm 😏 -resolvido 😘 segue a tree da wiki: +ok, agora ajustar os links da _Sidebar: ``` -tree src/docs/wiki -src/docs/wiki -├── Architecture.md -├── Build-System.md -├── FAQ.md -├── _Footer.md -├── Home.md -├── Neurotron.md -├── Roadmap.md -├── _Sidebar.md -└── TRM.md +# 📘 NFDOS Wiki -1 directory, 9 files +## 🏠 Início +- [Home](Home) + +## 🧩 Arquitetura +- [Architecture](Architecture) +- [Build System](Build-System) +- [Roadmap](Roadmap) + +## 🧠 Neurotron +- [Visão Geral](Neurotron) +- [TRM — Tiny Recursive Model](TRM) + +## 🛠️ Suporte & Desenvolvimento +- [FAQ](FAQ) + +--- + +### 🧬 Núcleo NFDOS + Neurotron +_Escrever o futuro, blocos de um bit de cada vez._ ``` -hoje vamos so tratar da _Sidebar.md (linkar para as outras paginas) \ No newline at end of file +o gitea entende que sao .md mas o mkdocs nao o faz automaticamente: +``` +🚧 A compilar documentação com MkDocs… +INFO - Cleaning site directory +INFO - Building documentation to directory: /home/neo/Público/nfdos/src/site +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'Home', it was left as is. Did you mean 'Home.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'Architecture', it was left as is. Did you mean 'Architecture.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'Build-System', it was left as is. Did you mean 'Build-System.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'Roadmap', it was left as is. Did you mean 'Roadmap.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'Neurotron', it was left as is. Did you mean 'Neurotron.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'TRM', it was left as is. Did you mean 'TRM.md'? +INFO - Doc file '_Sidebar.md' contains an unrecognized relative link 'FAQ', it was left as is. Did you mean 'FAQ.md'? +INFO - Documentation built in 0.42 seconds +✔ Documentação compilada para 'site/'. +``` +se tiver como setar no mkdocs.yml melhor, mas se nao tiver temos de ajustar manualmente \ No newline at end of file diff --git a/src/_nfdos/kernel/neurotron/neurotron b/src/_nfdos/kernel/neurotron/neurotron index 4ee0ce7..35d9002 100755 --- a/src/_nfdos/kernel/neurotron/neurotron +++ b/src/_nfdos/kernel/neurotron/neurotron @@ -4,9 +4,18 @@ PYTHON="/usr/bin/python3" NEUROTRON_HOME="/opt/kernel/neurotron" SRC="$NEUROTRON_HOME/src" +# Garante diretórios básicos +mkdir -p /proc /sys /dev + +# Montar proc, sysfs e devtmpfs (idempotente, falha silenciosa se já montado) +mount -t proc proc /proc 2>/dev/null || true +mount -t sysfs sys /sys 2>/dev/null || true +mount -t devtmpfs devtmpfs /dev 2>/dev/null || true + +# Ambiente Python minimalista export PYTHONHOME="/usr" export PYTHONPATH="$SRC:/usr/lib/python3.13:/usr/lib/python3.13/site-packages" export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH" # Arrancar o cérebro principal como módulo do package -exec "$PYTHON" -m neurotron "$@" \ No newline at end of file +exec "$PYTHON" -m neurotron "$@" diff --git a/src/bootstrap.py b/src/bootstrap.py index a26ab8a..076d79d 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -15,8 +15,6 @@ class Application(object): def run(self): self._ensure_venv() - self._install_mkdocs() - self._build_site() self.launch_welcome() def _ensure_venv(self): @@ -30,19 +28,6 @@ class Application(object): else: print("[=] Ambiente virtual já existente.") - def _install_mkdocs(self): - """Instala o MkDocs dentro do ambiente virtual.""" - print("[+] A instalar o MkDocs e o tema Material...") - subprocess.run(["venv/bin/pip", "install", "-U", "mkdocs", "mkdocs-material"], check=True) - subprocess.run(["venv/bin/pip", "install", "-U", "colorama", "rich"], check=True) - - - def _build_site(self): - """Gera o site estático a partir da pasta docs/.""" - print("[+] A compilar o site com o MkDocs...") - subprocess.run(["venv/bin/mkdocs", "build", "--clean"], check=True) - print("[✓] Site compilado com sucesso na diretoria 'site/'.") - def detect_environment(self): """Deteta se o ambiente possui interface gráfica GNOME disponível.""" if os.environ.get("DISPLAY") and shutil.which("gnome-shell"): diff --git a/src/docs/wiki/_Sidebar.md b/src/docs/wiki/_Sidebar.md index 59e6b13..92e34e7 100644 --- a/src/docs/wiki/_Sidebar.md +++ b/src/docs/wiki/_Sidebar.md @@ -1,19 +1,19 @@ # 📘 NFDOS Wiki ## 🏠 Início -- [Home](Home) +- [Home](Home.md) ## 🧩 Arquitetura -- [Architecture](Architecture) -- [Build System](Build-System) -- [Roadmap](Roadmap) +- [Architecture](Architecture.md) +- [Build System](Build-System.md) +- [Roadmap](Roadmap.md) ## 🧠 Neurotron -- [Visão Geral](Neurotron) -- [TRM — Tiny Recursive Model](TRM) +- [Visão Geral](Neurotron.md) +- [TRM — Tiny Recursive Model](TRM.md) ## 🛠️ Suporte & Desenvolvimento -- [FAQ](FAQ) +- [FAQ](FAQ.md) --- diff --git a/src/mkdocs.yml b/src/mkdocs.yml index fc7f5ca..40f5edb 100644 --- a/src/mkdocs.yml +++ b/src/mkdocs.yml @@ -1,6 +1,4 @@ -docs_dir: book +docs_dir: docs/wiki site_name: NFDOS Vision -nav: - - Home: index.md theme: name: material diff --git a/src/nfdos b/src/nfdos new file mode 100755 index 0000000..2381cb1 --- /dev/null +++ b/src/nfdos @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import sys +sys.path.insert(1, '/usr/local/local/lib/python3.12/dist-packages') + +from bootstrap import Application + +if __name__ == "__main__": + app = Application(package="nfdos", version="5281bb3-dirty") + app.run() + diff --git a/src/site/404.html b/src/site/404.html index 94e5500..8d9502d 100644 --- a/src/site/404.html +++ b/src/site/404.html @@ -187,7 +187,88 @@
  • - + + + + + + + + Architecture + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Build System + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + FAQ + + + + + + + + +
  • + + + + + + + + + +
  • + @@ -207,6 +288,141 @@ + + + + + + +
  • + + + + + + + + Neurotron + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Roadmap + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + TRM + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Footer + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + 📘 NFDOS Wiki + + + + + + + + +
  • + + + diff --git a/src/site/Architecture/index.html b/src/site/Architecture/index.html new file mode 100644 index 0000000..799f046 --- /dev/null +++ b/src/site/Architecture/index.html @@ -0,0 +1,528 @@ + + + + + + + + + + + + + + + + + + + + + + + + Architecture - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Architecture

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/Build-System/index.html b/src/site/Build-System/index.html new file mode 100644 index 0000000..14b981e --- /dev/null +++ b/src/site/Build-System/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Build System - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Build System

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/FAQ/index.html b/src/site/FAQ/index.html new file mode 100644 index 0000000..0fd4a16 --- /dev/null +++ b/src/site/FAQ/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + FAQ - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    FAQ

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/Home/index.html b/src/site/Home/index.html new file mode 100644 index 0000000..3ef1ee1 --- /dev/null +++ b/src/site/Home/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Home - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Home

    + +

    Home.md

    + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/Neurotron/index.html b/src/site/Neurotron/index.html new file mode 100644 index 0000000..491c05b --- /dev/null +++ b/src/site/Neurotron/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Neurotron - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Neurotron

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/Roadmap/index.html b/src/site/Roadmap/index.html new file mode 100644 index 0000000..b5c37d7 --- /dev/null +++ b/src/site/Roadmap/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Roadmap - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Roadmap

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/TRM/index.html b/src/site/TRM/index.html new file mode 100644 index 0000000..cea0eef --- /dev/null +++ b/src/site/TRM/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + TRM - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    TRM

    + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/_Footer/index.html b/src/site/_Footer/index.html new file mode 100644 index 0000000..19e0151 --- /dev/null +++ b/src/site/_Footer/index.html @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Footer - NFDOS Vision + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    + +
    + + + + + +

    Footer

    + +

    _Footer.md

    + + + + + + + + + + + + + +
    +
    + + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/site/neurotron/index.html b/src/site/_Sidebar/index.html similarity index 62% rename from src/site/neurotron/index.html rename to src/site/_Sidebar/index.html index e6a07a6..979edef 100644 --- a/src/site/neurotron/index.html +++ b/src/site/_Sidebar/index.html @@ -9,6 +9,8 @@ + + @@ -19,7 +21,7 @@ - Neurotron - NFDOS Vision + 📘 NFDOS Wiki - NFDOS Vision @@ -60,7 +62,7 @@
    - + Skip to content @@ -96,7 +98,7 @@
    - Neurotron + 📘 NFDOS Wiki
    @@ -192,7 +194,88 @@
  • - + + + + + + + + Architecture + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Build System + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + FAQ + + + + + + + + +
  • + + + + + + + + + +
  • + @@ -212,6 +295,249 @@ + + + + + + +
  • + + + + + + + + Neurotron + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Roadmap + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + TRM + + + + + + + + +
  • + + + + + + + + + +
  • + + + + + + + + Footer + + + + + + + + +
  • + + + + + + + + + + + +
  • + + + + + + + + + + + + + + + + + 📘 NFDOS Wiki + + + + + + + + + + + + + +
  • + + +
    @@ -229,6 +555,8 @@ + +