Skip to content

Commit

Permalink
modify(doc): add version description for navigation and header
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLi1024 committed Nov 7, 2023
1 parent 7a2a5d6 commit 8032e38
Show file tree
Hide file tree
Showing 21 changed files with 271 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 2.x/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
master_doc = 'index'

# General information about the project.
project = u'FISCO BCOS v2'
project = u'FISCO BCOS 2.0'
copyright = u'© 2020. All rights reserved.'
author = u'fisco-bcos-dev'

Expand Down
2 changes: 1 addition & 1 deletion 2.x/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FISCO BCOS Documentation
##############################################################

.. image:: _static/images/FISCO_BCOS_Logo_2_0.png
.. image:: _static/images/FISCO_BCOS_Logo_2.0.svg

FISCO BCOS is a reliable, secure, efficient and portable blockchain platform with proven success from many partners and successful financial-grade applications.

Expand Down
6 changes: 6 additions & 0 deletions 2.x/images/tutorial/link_2.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions 2.x/images/tutorial/link_2.0_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions 2.x/images/tutorial/link_3.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions 2.x/images/tutorial/link_3.0_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 39 additions & 3 deletions 2.x/index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@
请根据需求选择FISCO BCOS的版本,并确认周边组件与其版本相匹配。

.. container:: row

.. container:: card-holder-bigger

.. container:: card-bigger

.. image:: _static/images/FISCO_BCOS_Logo_2.0.svg

.. raw:: html

<div>
<br>
<h style="font-size: 18px;"><b><a href="https://fisco-bcos-documentation.readthedocs.io/zh-cn/latest/#">本文档版本 2.0:简单、易用、经典、稳定</a></b></h>
<br><br><br>
</div>
<div style="clear:both"></div>

.. raw:: html

<div >
<br>
<h style="font-size: 18px;"><b><a href="https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/index.html"> ====>> 切换至 3.0 版本文档</a></b></h>
<br><br>
</div>
<div style="clear:both"></div>


.. container:: row

.. raw:: html
<br><br>
<hr>
<br>



##############################################################
FISCO BCOS 技术文档
FISCO BCOS 2.0 技术文档
##############################################################

.. image:: _static/images/FISCO_BCOS_Logo_2_0.png

FISCO BCOS 是一个稳定、高效、安全的区块链底层平台,经过多家机构、多个应用,长时间在生产环境运行的实际检验。

.. note::
Expand Down
4 changes: 4 additions & 0 deletions 3.x/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ p {
width: 100%
}

ul.wy-breadcrumbs a.icon.icon-home::after {
content: " FISCO BCOS 3.0";
}

.wy-side-nav-search img {
display: block;
margin: auto auto .809em auto;
Expand Down
72 changes: 72 additions & 0 deletions 3.x/_static/images/FISCO_BCOS_Logo_3.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions 3.x/_static/images/link_2.0_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions 3.x/_static/images/link_3.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion 3.x/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
<base href="/zh_CN/latest/">\n ' + metatags %}{% endif %}
{% block sidebartitle %}
{{ super() }}

<br>
<img style="background-color:#fff; height: unset; width: unset;" alt="FISCO BCOS" src="{{ pathto("_static/images/FISCO_BCOS_Logo_3_0.png",1) }}" />
<img style="background-color:#fff; height: unset; width: unset;" alt="FISCO BCOS" src={{
pathto("_static/images/FISCO_BCOS_Logo.svg", 1) }} /><a href="https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/index.html">
<a href="https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/index.html"><img
style="background: transparent; padding: 0px; margin: auto auto auto auto; height: 35px; width: auto" alt="FISCO BCOS 3.0"
src="{{ pathto("_static/images/link_3.0.svg", 1) }}" /></a>
<a href="https://fisco-bcos-documentation.readthedocs.io/zh-cn/latest/"><img
style="background: transparent; padding: 0px; margin: auto auto auto auto; height: 35px; width: auto" alt="FISCO BCOS 2.0"
src="{{ pathto("_static/images/link_2.0_gray.svg", 1) }}" /></a><br>
<a href="https://github.com/FISCO-BCOS"><img
style="background: transparent; padding: 0px; margin: auto auto auto auto; height: 30px;" alt="GitHub"
src="{{ pathto("_static/images/github_button.svg", 1) }}" /></a>
Expand All @@ -14,4 +22,5 @@
<a href="https://twitter.com/FiscoBcos"><img
style="background: transparent; padding: 0px; margin: auto auto auto auto; height: 30px;" alt="Twitter"
src="{{ pathto("_static/images/twitter_button.svg", 1) }}" /></a>

{% endblock %}
2 changes: 1 addition & 1 deletion 3.x/zh_CN/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
master_doc = 'index'

# General information about the project.
project = u'FISCO BCOS v3'
project = u'FISCO BCOS 3.0'
copyright = u'© 2022. All rights reserved.'
author = u'fisco-bcos-dev'

Expand Down
40 changes: 38 additions & 2 deletions 3.x/zh_CN/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
请根据需求选择FISCO BCOS的版本,并确认周边组件与其版本相匹配。

.. container:: row

.. container:: card-holder-bigger

.. container:: card-bigger

.. image:: _static/images/FISCO_BCOS_Logo_3_0.png

.. raw:: html

<div>
<br>
<h style="font-size: 18px;"><b><a href="https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/index.html">本文档版本 3.0:高性能、易拓展、高可用</a></b></h>
<br><br><br>
</div>
<div style="clear:both"></div>

.. raw:: html

<div >
<br>
<h style="font-size: 18px;"><b><a href="https://fisco-bcos-documentation.readthedocs.io/zh-cn/latest/#"> ====>> 切换至 2.0 版本文档</a></b></h>
<br><br>
</div>
<div style="clear:both"></div>

.. container:: row

.. raw:: html
<br><br>
<hr>
<br>



##############################################################
FISCO BCOS 技术文档
FISCO BCOS 3.0 技术文档
##############################################################

.. image:: _static/images/FISCO_BCOS_Logo_3_0.png

FISCO BCOS(读作/ˈfɪskl bi:ˈkɒz/) 是一个稳定、高效、安全的区块链底层平台,其可用性经广泛应用实践检验。至今已超过4000家企业及机构、300+产业数字化标杆应用,覆盖文化版权、司法服务、政务服务、物联网、金融、智慧社区、房产建筑、社区治理、乡村振兴等领域。

Expand Down
9 changes: 9 additions & 0 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ p {
width: 100%
}

ul.wy-breadcrumbs a.icon.icon-home::after {
content: " FISCO BCOS 2.0";
}

li.wy-breadcrumbs-aside::after {
content: " | 点击左侧导航栏跳转到3.0版本";
color: #878e92;
}

.wy-side-nav-search img {
display: block;
margin: auto auto .809em auto;
Expand Down
Loading

0 comments on commit 8032e38

Please sign in to comment.