Parcourir la source

Fix css logo issue

Jérôme BUISINE il y a 3 ans
Parent
commit
a0aaa4b9a8
3 fichiers modifiés avec 26 ajouts et 5 suppressions
  1. 3 3
      README.md
  2. 21 0
      docs/source/_static/css/custom.css
  3. 2 2
      docs/source/documentations/index.rst

+ 3 - 3
README.md

@@ -58,8 +58,8 @@ Main idea about this Python package is that it does not which doesn't implement
 Fully documentation of package with examples is [available](https://jbuisine.github.io/macop). 
 
 You can also see examples of use:
--  in the [knapsackExample.py](https://github.com/jbuisine/macop/blob/master/examples/knapsackExample.py) for mono-objective instance.
--  in the [knapsackMultiExample.py](https://github.com/jbuisine/macop/blob/master/examples/knapsackMultiExample.py) for multi-objective instance.
+-  in the [knapsackExample.py](https://github.com/jbuisine/macop/blob/master/examples/knapsackExample.py) for mono-objective knapsack instance.
+-  in the [knapsackMultiExample.py](https://github.com/jbuisine/macop/blob/master/examples/knapsackMultiExample.py) for multi-objective knapsack instance.
 -  in the [qapExample.py](https://github.com/jbuisine/macop/blob/master/examples/qapExample.py) for mono-objective QAP instance.
 -  in the [ubqpExample.py](https://github.com/jbuisine/macop/blob/master/examples/ubqpExample.py) for mono-objective UBQP problem instance.
 
@@ -69,7 +69,7 @@ You can also see examples of use:
 git submodule add https://github.com/jbuisine/macop.git
 ```
 
-## Current projects which use `Macop`
+## Current projects which use `Macop`:
 
 - [@prise3d/noise-detection-attributes-optimization](https://github.com/prise-3d/noise-detection-attributes-optimization): use of a parent algorithm with the real (but very expensive) evaluation function, and then inner local searches which use a substitution model (a model that has learned to approximate the real cost function with a quick-to-evaluate function). Hence, two evaluation functions have been used in order to accelerate the search in the set of solutions.
 

+ 21 - 0
docs/source/_static/css/custom.css

@@ -6,6 +6,15 @@
     background-image: url("../logo_macop.png") !important;
 }
 
+@media only screen and (max-width: 900px) {
+
+    .header-logo {
+        background-size: 93px 30px !important;
+        height: 33px !important;
+        margin-top: 1px !important;
+    }
+}
+
 .pytorch-left-menu-search input[type="text"] {
     border-color: #009900 !important;
 }
@@ -35,6 +44,14 @@ div[id=api] colgroup :first-child {
     width: 60% !important;
 }
 
+table.docutils colgroup :first-child {
+    width: 60% !important;
+}
+
+table.colwidths-given colgroup :first-child {
+    width: 30% !important;
+}
+
 .rst-content a:link, .rst-content a:visited, .rst-content a:hover {
     color: #009900 !important;
 }
@@ -67,4 +84,8 @@ div[id=api] colgroup :first-child {
     display: block;
     margin-left: auto;
     margin-right: auto;
+}
+
+.tutorials-header .main-menu-open-button {
+    display: none !important;
 }

+ 2 - 2
docs/source/documentations/index.rst

@@ -1,5 +1,5 @@
-Documentation
-==============
+A tour of Macop
+===================
 
 .. image:: ../_static/logo_macop.png
    :width: 300 px