Mini App Document Mini App Document
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Configuration

    • Global configuration
    • Page configuration
    • sitemap configuration
      • 1. Sitemap configuration
        • 1.1 configuration item
        • 1.2 rules
      • 2. Configuration example
      • 3. Special situation description
      • 4. disclaimer
  • Interface

  • FXML syntax

  • FXS syntax

  • Framework
  • Configuration
2022-08-05
Directory

sitemap configuration

Neuxnet is now open for in-program search, and developers can configure whether indexing is allowed on their Mini App pages by configuring 'sitemap.json'. Neuxnet indexes the page content of the Mini App in the form of a crawler. When the user's search term triggers the index, the MiniApp's page may appear in the search results.

# 1. Sitemap configuration

The 'sitemap.json' file in the root directory of the Mini App is used to configure whether the Mini App and its pages are allowed to be indexed by SuperApp, the file content is a 'JSON' object, if there is no 'sitemap.json', the default is that all pages are allowed to be indexed, 'sitemap.json' has the following properties:

# 1.1 configuration item

Properties Type Required Description
rules Object[] Yes Index rule list

# 1.2 rules

The rules configuration item specifies indexing rules, each of which is a JSON object, with properties as follows:

Properties Type Required The default value is The value The value description
action string No "allow" "allow"、"disallow" Whether the page that hits the rule can be indexed
page string Yes "*", path to page, * represents all pages and cannot be used as wildcards

# 2. Configuration example

  • 'path/to/page1' = > not indexed
  • 'path/to/page2' = > is not indexed
  • Other pages will be indexed

# 3. Special situation description

  1. Without 'sitemap.json', all pages can be indexed by default;
  2. '{"action": "allow", "page": "*"}' is the default rule with the lowest priority, and all those that do not explicitly indicate ''disallow' are indexed by default;
  3. The content of the 'sitemap.json' file is '5120' 'UTF8' characters;
  4. When there are pages that are not easy to be included by the platform, developers can also use 'sitemap.json' to declare processing.

# 4. disclaimer

If the developer does not follow the Neuxnet's prompts and guidelines for the developer to use this setting to configure the function, resulting in the user's personal information being exposed and disclosed, unauthorized access or leakage, all legal liabilities shall be borne by the developer.

In the event that user information is improperly displayed, we may take measures including but not limited to requiring developers to rectify within a certain period of time according to the degree to ensure the security of user information.

Last update: 2022/08/16, 21:24:25
Page configuration
APP

← Page configuration APP→

Copyright © 2020-2024 Neuxnet
  • Follow System
  • Light Mode
  • Dark Mode
  • Reading Mode