add documentation

This commit is contained in:
2025-02-24 16:51:43 +07:00
parent 04c547c90f
commit 8d11a4ec6f
15037 changed files with 5902106 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import controllers
+14
View File
@@ -0,0 +1,14 @@
{
"name": "Documentation",
"version": "18.0",
"description": "Serves a static HTML page",
"author": "NextZen",
"category": "Tutorial",
"depends": ["base"],
"data": [],
"assets": {
'documentation/static/html/**/*',
},
"installable": True,
"auto_install": False,
}
+1
View File
@@ -0,0 +1 @@
from . import controllers
+21
View File
@@ -0,0 +1,21 @@
from odoo import http
from odoo.addons.base import controllers
from odoo.tools import config
from werkzeug.exceptions import NotFound
from odoo.http import request
import os
class Documentation(http.Controller):
@http.route('/documentation', auth='public', cache=3600)
def serve_static_html(self):
# Get absolute path to your HTML file
module = '/root/dev/NextERP/dev/odoo18/Odoo18/exercise/documentation'
resource_path = 'static/html/18.0/index.html'
file_path = os.path.join(module, resource_path)
with open(file_path, 'r') as f:
content = f.read()
return request.make_response(content, [
('Content-Type', 'text/html'),
])
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 371770b25e84b7bd9520e5bbfb1f7484
tags: 645f666f9bcd5a90fca523b33c5a78b7

Some files were not shown because too many files have changed in this diff Show More