承接 mapbender/documentation 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mapbender/documentation

Composer 安装命令:

composer require mapbender/documentation

包简介

Mapbender documentation

README 文档

README

This is the repository of the Mapbender documentation.

You can find compiled pages of the latest tagged releases on the official documentation landing page. Other versions of the documentation are also available on the same page under Older Versions.

The website code is generated using Sphinx, the documentation is written in Restructured Text.

The documentation source code is available on Github.

Prerequisites

To build the website locally, you need to install Sphinx first. Install it and the required extensions in Debian-based distributions with:

sudo apt install sphinx-common python3-sphinx
sudo apt install python3-sphinxcontrib.phpdomain
sudo apt install python3-sphinx-rtd-theme
sudo apt install python3-sphinx-notfound-page
sudo apt install python3-sphinx-copybutton

You will then be able to build the documentation by running:

make

How to build

Alternatively, clone the repository from GitHub to any directory:

cd /data
git clone git@github.com:mapbender/mapbender-documentation
cd mapbender-documentation
git checkout master

Then, build a tagged version with:

sphinx-build . _build -A version=4.0

Now, create a symlink from your build folder to the Apache Webserver:

ln -s /data/mapbender-documentation/_build/ /var/www/html/mb-doc

Finally, you can open the documentation in a web browser using:

http://localhost/mb-doc/

If you want to rebuild the documentation, delete the old build first:

rm -rf _build

How to participate

To contribute to the documentation, first create a fork of this repository, then implement your changes in it and finally test the changes on your local machine.

  cd /mapbender-documentation/en/elements/basic # In your forked repo, let's assume that you want to create a docs page that is part of the Mapbender CoreBundle. Switch to the folder where you want to put your file.
  cp overview.rst basic/add_wms.rst  # Create an .rst file. In this example, we copy the overview.rst as a template for the new documentation file.
  # Write the documentation. Keep it short and simple. Use the structure of the document and check the documentation rules below.
  sphinx-build . _build -A version=4.0 # Build the documentation locally to see what your documentation looks like. Adjust the version number (optional).
  ln -s /data/mapbender-documentation/_build/ /var/www/html/mb-doc # Create a symlink from your Sphinx build folder to your Apache web server to test the documentation locally.

Now, take a look at the documentation in your browser. Is everything OK? Are any changes needed? If not, you can create a pull request to add your reviewed changes to the documentation.

How to write

Here are some basic conventions for writing documentation.

Formatting syntax

We implement the basic .rst formatting syntax in the Mapbender documentation. It is documented in detail on the Sphinx page.

For inline markup, the aim is to comply with the following syntax:

  • One asterisk for file names (README.md),
  • two asterisks for text quoted directly from Mapbender, e.g. feature names or button labels (Save),
  • backquotes for (file) paths (figures/sketch.png),
  • double backquotes for inline code (bin/console mapbender:security:migrate-from-acl),

For several lines of code, we use code blocks.

.. code-block::

Moreover, we use formatting blocks to add important information to the documentation.

.. hint::
    This is a small hint.

.. note::
    This is an important note.

.. tip::
    This is a handy tip.

.. warning::
    This is a warning.

Referencing syntax

Here are some basic conventions for referencing images and headings.

Referencing images

Images for the documentation are available in mapbender-documentation/figures.

  • Create optimized web images in .png file format that are approximately 1 MB (or smaller) in size.
  • For elements, use elementname.png and elementname_configuration.png as names.
  • If you also provide German image files, please keep the names and create two more images in the de folder.
  • See the Quickstart file to see image referencing methods in action.

Referencing text

Each .rst file has its own tag that you can refer to. Use :ref: and the tag in the first line of the corresponding file to refer to another page in the documentation, e.g.:

    :ref:`overview_de` points to the German page of the overview map.

For referencing specific documentation sections, we use the Sphinx Autosectionlabel extension. It allows to reference sections using its title. The syntax is a combination of the file path name, a colon and the section title name.

For example, you can add a link to the Install Mapbender section of the Quickstart document like this:

    The following class refers to the :ref:`en/quickstart:Install Mapbender` text section.

Languages

The two fully supported languages (i.e.: en - English, de - German) should have the same file structure:

  /mapbender-documentation
    index.rst          # refers to the different languages
    /figures           # images that are included in the documentation
    /de                # German file locations
      ...
    /en                # English file locations
      index.rst        # refers to TheBook, Developer's Book & the Bundle Documentation
      bundles.rst      # lists the chapters of this category - refers to rst files
      development.rst  # lists the chapters of this category - refers to rst files
      /architecture
      /development
          ....
      /elements
          /backend
          /basic
          ....

Have fun!

mapbender/documentation 适用场景与选型建议

mapbender/documentation 是一款 基于 Python 开发的 Composer 扩展包,目前已累计 3.89k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 04 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「documentation」 「mapbender」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mapbender/documentation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mapbender/documentation 我们能提供哪些服务?
定制开发 / 二次开发

基于 mapbender/documentation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 18
  • Forks: 24
  • 开发语言: Python

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-26