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
  • Start

  • Configuration

    • Global vs. page configuration
    • sitemap configuration
      • 1. Sitemap configuration
        • Example 1
        • Example 2
        • Example 3
      • 2. Special situation description
  • MiniApp Framework

  • Custom component
  • Basic ability

  • Guide
  • Configuration
2022-08-05
Directory

sitemap configuration

# 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 MiniApp is used to configure whether the Mini App and its pages are allowed to be indexed by Neuxnet.

# Example 1

{
  "rules":[{
    "action": "allow",
    "page": "*"
  }]
}

All pages are indexed by Neuxnet (default)

# Example 2

{
  "rules":[{
    "action": "disallow",
    "page": "path/to/page"
  }]
}

The configuration 'path/to/page' page is not indexed, and the remaining pages are allowed to be indexed

# Example 3

{
  "rules":[{
    "action": "allow",
    "page": "path/to/page"
  }, {
    "action": "disallow",
    "page": "*"
  }]
}

Configure 'path/to/page' pages to be indexed, and the rest of the pages are not indexed

# 2. 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.
Last update: 2022/08/16, 21:24:25
Global vs. page configuration
Introduction

← Global vs. page configuration Introduction→

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