diff --git a/web_no_crawler/README.rst b/web_no_crawler/README.rst index 046df45a0..38929e877 100644 --- a/web_no_crawler/README.rst +++ b/web_no_crawler/README.rst @@ -1,101 +1,35 @@ -=========================================== -Disallow indexing completely via robots.txt -=========================================== +**This file is going to be generated by oca-gen-addon-readme.** -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +*Manual changes will be overwritten.* -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png - :target: https://odoo-community.org/page/development-status - :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/8.0/web_no_crawler - :alt: OCA/web -.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-8-0/web-8-0-web_no_crawler - :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/162/8.0 - :alt: Try me on Runbot +Please provide content in the ``readme`` directory: -|badge1| |badge2| |badge3| |badge4| |badge5| +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) -This module was written to implement a robots.txt file to prevent web crawlers (like google) from indexing pages. -This module does not depend on Website module. +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. -**Table of contents** +A good, one sentence summary in the manifest is also highly recommended. -.. contents:: - :local: -Installation -============ +Automatic changelog generation +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Installation as usual. No specific installation steps / configuration required. +`HISTORY.rst` can be auto generated using `towncrier `_. -**WARNING:** this module is not to be used with `Website` module as it has a separate functionality for robots.txt. +Just put towncrier compatible changelog fragments into `readme/newsfragments` +and the changelog file will be automatically generated and updated when a new fragment is added. -Usage -===== +Please refer to `towncrier` documentation to know more. -To use this module, you need to: - -No configuration needed. Once installed adds robots.txt (ex.: http://example.org/robots.txt). - -Known issues / Roadmap -====================== - -* Investigate possibilies for compatibility with `Website` module as it has a separate functionality for robots.txt. - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Ventor -* Xpansa Group - -Contributors -~~~~~~~~~~~~ - -* Nedas Zilinskas (http://xpansa.com) - -Other credits -~~~~~~~~~~~~~ - -The development of this module has been financially supported by: - -* Ventor, Xpansa Group () - -Maintainers -~~~~~~~~~~~ - -This module is maintained by the OCA. - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -This module is part of the `OCA/web `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. +NOTE: the changelog will be automatically generated when using `/ocabot merge $option`. +If you need to run it manually, refer to `OCA/maintainer-tools README `_. diff --git a/web_no_crawler/__init__.py b/web_no_crawler/__init__.py index 371866259..987085450 100644 --- a/web_no_crawler/__init__.py +++ b/web_no_crawler/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2018 Ventor, Xpansa Group () # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/web_no_crawler/__openerp__.py b/web_no_crawler/__manifest__.py similarity index 66% rename from web_no_crawler/__openerp__.py rename to web_no_crawler/__manifest__.py index b68fa33d1..94258a833 100644 --- a/web_no_crawler/__openerp__.py +++ b/web_no_crawler/__manifest__.py @@ -1,17 +1,15 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2018 Ventor, Xpansa Group () # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { 'name': 'Disallow indexing completely via robots.txt', 'author': 'Ventor, Xpansa Group, Odoo Community Association (OCA)', - 'website': 'https://github.com/OCA/website/tree/8.0', + 'website': 'https://github.com/OCA/web', 'category': 'web', - 'version': '8.0.1.0.0', + 'version': '12.0.1.0.0', 'depends': [ - 'base', + 'web', ], 'installable': True, - 'application': False, - 'license': 'AGPL-3', + 'license': 'LGPL-3', } diff --git a/web_no_crawler/controllers/__init__.py b/web_no_crawler/controllers/__init__.py index cb0d94a61..ef0176ce7 100644 --- a/web_no_crawler/controllers/__init__.py +++ b/web_no_crawler/controllers/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2018 Ventor, Xpansa Group () # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/web_no_crawler/controllers/main.py b/web_no_crawler/controllers/main.py index 8ac0f6c00..feaba5404 100644 --- a/web_no_crawler/controllers/main.py +++ b/web_no_crawler/controllers/main.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2018 Ventor, Xpansa Group () # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). - -import openerp -from openerp import http +from odoo import http +from odoo.addons.web.controllers.main import Home -class Main(openerp.addons.web.controllers.main.Home): +class Main(Home): @http.route('/robots.txt', type='http', auth="none") def robots(self): diff --git a/web_no_crawler/readme/CONTRIBUTORS.rst b/web_no_crawler/readme/CONTRIBUTORS.rst index 1fa8ce6ee..1aa4c7626 100644 --- a/web_no_crawler/readme/CONTRIBUTORS.rst +++ b/web_no_crawler/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Nedas Zilinskas (http://xpansa.com) +* Stefan Rijnhart diff --git a/web_no_crawler/static/description/index.html b/web_no_crawler/static/description/index.html deleted file mode 100644 index 7434d2c20..000000000 --- a/web_no_crawler/static/description/index.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - -Disallow indexing completely via robots.txt - - - -
-

Disallow indexing completely via robots.txt

- - -

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runbot

-

This module was written to implement a robots.txt file to prevent web crawlers (like google) from indexing pages. -This module does not depend on Website module.

-

Table of contents

- -
-

Installation

-

Installation as usual. No specific installation steps / configuration required.

-

WARNING: this module is not to be used with Website module as it has a separate functionality for robots.txt.

-
-
-

Usage

-

To use this module, you need to:

-

No configuration needed. Once installed adds robots.txt (ex.: http://example.org/robots.txt).

-
-
-

Known issues / Roadmap

-
    -
  • Investigate possibilies for compatibility with Website module as it has a separate functionality for robots.txt.
  • -
-
-
-

Bug Tracker

-

Bugs are tracked on GitHub Issues. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

-

Do not contact contributors directly about support or help with technical issues.

-
-
-

Credits

-
-

Authors

-
    -
  • Ventor
  • -
  • Xpansa Group
  • -
-
- -
-

Other credits

-

The development of this module has been financially supported by:

- -
-
-

Maintainers

-

This module is maintained by the OCA.

-Odoo Community Association -

OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use.

-

This module is part of the OCA/web project on GitHub.

-

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

-
-
-
- -