PRIVATE add .htaccess, update menu links with graph.oepnaire.eu, add missing mobileheader

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-api-http-doc/src@61750 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Argiro Kokogiannaki 2021-11-16 11:46:09 +00:00
parent acb618e4ca
commit 9c7e03f6e6
3 changed files with 105 additions and 16 deletions

26
.htaccess Normal file
View File

@ -0,0 +1,26 @@
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ ./index.html
DirectoryIndex overview.html
Redirect /overview /overview.html
Redirect /advanced /advanced.html
Redirect /authentication /authentication.html
Redirect /broker /advanced.html
Redirect /api /api.html
Redirect /auth_services /auth_services.html
Redirect /bulk-projects /bulk-projects.html
Redirect /overview /overview.html
Redirect /registeredService /registeredService.html
Redirect /basic /basic.html
Redirect /changelog /changelog.html
Redirect /graph-dumps /graph-dumps.html
Redirect /notFound /notFound.html
Redirect /personalToken /personalToken.html
Redirect /response-metadata-format /response-metadata-format.html

View File

@ -3,33 +3,33 @@
<div class="uk-container uk-container-expand">
<nav class="uk-navbar" uk-navbar="{&quot;align&quot;:&quot;left&quot;}">
<div class="uk-navbar-left">
<a href="overview.html" class="uk-navbar-item uk-logo">
<a href="https://graph.openaire.eu/" class="uk-navbar-item uk-logo">
<img src="assets/common-assets/logo-large-graph.png" class="uk-responsive-height" alt="OpenAIRE">
</a>
</div>
<div class="uk-navbar-right">
<ul class="uk-navbar-nav">
<li class="uk-parent menuItem">
<a href="" aria-expanded="false">Home</a>
<a href="https://graph.openaire.eu/" aria-expanded="false">Home</a>
</li>
<li class="uk-parent menuItem">
<a href="" aria-expanded="false">About</a>
<a href="https://graph.openaire.eu/about" aria-expanded="false">About</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="left: 116px; top: 80px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a routerLinkActive="uk-link" href="">Overview</a></li>
<li><a routerLinkActive="uk-link" href="">Architecture</a></li>
<li><a routerLinkActive="uk-link" href="">Data and Metrics</a></li>
<li><a routerLinkActive="uk-link" href="">Infrastructure</a></li>
<li><a routerLinkActive="uk-link" href="">Team</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about">Overview</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#architecture">Architecture</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#metrics">Data and Metrics</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#infrastructure">Infrastructure</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#team">Team</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="uk-parent menuItem uk-active">
<a href="" aria-expanded="false">API & Resources</a>
<a href="overview.html" aria-expanded="false">API & Resources</a>
<div class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left" style="left: 116px; top: 80px;">
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
<div class="uk-first-column">
@ -39,14 +39,14 @@
<li class="submenuItem"><a routerLinkActive="uk-link" href="graph-dumps.html">Bulk Access</a></li>
<li class="submenuItem"><a routerLinkActive="uk-link" href="api.html">Selective Access</a></li>
<li class="submenuItem"><a routerLinkActive="uk-link" href="response-metadata-format.html">Response Metadata Format</a></li>
<li class="submenuItem"><a routerLinkActive="uk-link" href="">References</a></li>
<li class="submenuItem"><a routerLinkActive="uk-link" href="https://graph.openaire.eu/resources/references">References</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="uk-parent menuItem">
<a href="" aria-expanded="false">Support</a>
<a href="https://graph.openaire.eu/support" aria-expanded="false">Support</a>
</li>
</ul>
</div>
@ -58,13 +58,13 @@
const submenuItems = document.querySelectorAll(".submenuItem");
if (window.location.pathname.includes("overview")) {
submenuItems[0].classList.add('uk-active');
} else if (window.location.pathname.includes("authentication")) {
} else if (window.location.pathname.includes("authentication") || window.location.pathname.includes("personalToken") || window.location.pathname.includes("registeredService") || window.location.pathname.includes("basic") || window.location.pathname.includes("advanced")) {
submenuItems[1].classList.add('uk-active');
} else if (window.location.pathname.includes("graph-dumps")) {
} else if (window.location.pathname.includes("graph-dumps") || window.location.pathname.includes("bulk-projects") || window.location.pathname.includes("graph-dumps-old")) {
submenuItems[2].classList.add('uk-active');
} else if (window.location.pathname.includes("api")) {
} else if (window.location.pathname.includes("api.html")) {
submenuItems[3].classList.add('uk-active');
} else if (window.location.pathname.icnludes("response")) {
} else if (window.location.pathname.includes("response-metadata-format")) {
submenuItems[4].classList.add('uk-active');
}
</script>
</script>

63
headerMobile.html Normal file
View File

@ -0,0 +1,63 @@
<div animation="uk-animation-slide-top" class="uk-navbar-container uk-sticky uk-navbar-transparent" cls-active="uk-active uk-navbar-sticky" cls-inactive="uk-navbar-transparent" uk-sticky="">
<nav class="uk-navbar-container uk-navbar" uk-navbar="">
<div class="uk-navbar-left">
<a class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="">
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon"></div>
</a>
</div>
<div class="uk-navbar-center">
<a class="uk-navbar-item uk-logo" href="https://graph.openaire.eu/">
<img src="assets/common-assets/logo-small-graph.png" class="uk-responsive-height" alt="OpenAIRE">
</a>
</div>
</nav>
<div id="tm-mobile" uk-offcanvas="" mode="slide" overlay="" class="uk-offcanvas">
<div class="uk-offcanvas-bar">
<button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""></button>
<div class="uk-child-width-1-1 uk-grid" uk-grid="">
<div>
<div class="uk-panel" id="module-0">
<ul class="uk-nav uk-nav-default">
<li class="uk-nav-header uk-parent uk-active">
<a href="https://graph.openaire.eu/"> Home </a>
</li>
<li class="uk-nav-header uk-parent uk-active">
<a href="https://graph.openaire.eu/about">About</a>
<ul class="uk-nav-sub">
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about" >Overview</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#architecture" >Architecture</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#metrics">Data and Metrics</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#infrastructure">Infrastructure</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/about#team">Team</a></li>
</ul>
</li>
<li class="uk-nav-header uk-parent uk-active">
<a href="overview.html">API & Resources</a>
<ul class="uk-nav-sub">
<li><a routerLinkActive="uk-link" href="overview.html" >Overview</a></li>
<li><a routerLinkActive="uk-link" href="authentication.html" >Authentication</a></li>
<!-- <ul class="uk-nav-sub sub-sub-menu">
<li><a routerLinkActive="uk-link" href="personalToken.html" >Personal Token</a></li>
<li><a routerLinkActive="uk-link" href="registeredService.html" >Registered Services</a></li>
</ul> -->
<li><a routerLinkActive="uk-link" href="graph-dumps.html" >Bulk Access</a></li>
<!-- <ul class="uk-nav-sub">
<li><a routerLinkActive="uk-link" href="graph-dumps.html" >OpenAIRE Research Graph Dumps</a></li>
<li><a routerLinkActive="uk-link" href="bulk-projects.html" >Bulk access to projects</a></li>
</ul> -->
<li><a routerLinkActive="uk-link" href="api.html" >Selective Access</a></li>
<li><a routerLinkActive="uk-link" href="response-metadata-format.html" >Response Metadata Format</a></li>
<li><a routerLinkActive="uk-link" href="https://graph.openaire.eu/resources/references" >References</a></li>
</ul>
</li>
<li class="uk-nav-header uk-parent uk-active">
<a href="https://graph.openaire.eu/support">Support</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Mobile ENDS here -->