File tree Expand file tree Collapse file tree
src/NetRts.Server/wwwroot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,8 +110,11 @@ export function mountApiDocs(root) {
110110 < p class ="small muted "> Server: < code > ${ location . origin } </ code > · Rules and strategy:
111111 < a href ="https://github.com/SnowSE/NetRTS/blob/main/docs/bot-guide.md " target ="_blank " rel ="noopener "> the bot guide</ a > ·
112112 Every schema and field: < a href ="/scalar "> the full reference</ a > ·
113- < a href ="#requests "> Request files for your editor</ a > ·
114- Rather work in a notebook? < a href ="#/colab "> Play with Google Colab</ a > </ p >
113+ < a href ="#requests "> Request files for your editor</ a > </ p >
114+ < a class ="colab-callout " href ="#/colab ">
115+ < img src ="images/colab-logo.svg " alt ="" width ="40 " height ="25 ">
116+ < span > Rather work in a notebook? < b > Play with Google Colab</ b > < span aria-hidden ="true "> →</ span > </ span >
117+ </ a >
115118 </ header >
116119
117120 < section class ="apidocs-bar " aria-label ="Your key and language ">
Original file line number Diff line number Diff line change @@ -1646,6 +1646,12 @@ a.owner:hover { text-decoration: underline; }
16461646. apidocs-head . headline { font-size : clamp ( 2rem , 4.5vw , 3.2rem ) ; max-width : none; margin : 0 ; }
16471647. apidocs-head . lede { margin : 10px 0 0 ; max-width : 70ch ; }
16481648. apidocs-head p . small { margin : 12px 0 0 ; }
1649+ /* The way into the Colab notebook: noticeable beside the links above it, not a banner. */
1650+ . colab-callout { display : inline-flex; align-items : center; gap : 10px ; margin-top : 14px ; padding : 7px 16px 7px 12px ;
1651+ border : 1px solid var ( --line ) ; border-radius : 999px ; background : var ( --panel ) ; color : var ( --ink ) ; text-decoration : none; font-size : 0.95rem ; }
1652+ . colab-callout : hover { border-color : # F9AB00; }
1653+ . colab-callout : hover b { text-decoration : underline; }
1654+ . colab-callout img { display : block; flex : none; }
16491655. apidocs input : not ( [type = "radio" ]) , . apidocs textarea {
16501656 font : inherit;
16511657 color : inherit;
You can’t perform that action at this time.
0 commit comments