Skip to content

Commit a1eefda

Browse files
committed
Standalone reference
1 parent fc929bb commit a1eefda

19 files changed

+98022
-0
lines changed

docs/api/rest_api/rest_api_2/build/api.yaml

Lines changed: 95640 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"files": {
3+
"main.css": "/static/css/main.1c746339.css",
4+
"main.js": "/static/js/main.74149ae4.js",
5+
"static/js/453.ed3810f9.chunk.js": "/static/js/453.ed3810f9.chunk.js",
6+
"static/media/logo.svg": "/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg",
7+
"index.html": "/index.html",
8+
"main.1c746339.css.map": "/static/css/main.1c746339.css.map",
9+
"main.74149ae4.js.map": "/static/js/main.74149ae4.js.map",
10+
"453.ed3810f9.chunk.js.map": "/static/js/453.ed3810f9.chunk.js.map"
11+
},
12+
"entrypoints": [
13+
"static/css/main.1c746339.css",
14+
"static/js/main.74149ae4.js"
15+
]
16+
}

docs/api/rest_api/rest_api_2/build/css/base.css

Lines changed: 1942 additions & 0 deletions
Large diffs are not rendered by default.
3.78 KB
Binary file not shown.
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" href="/favicon.ico" />
7+
<meta name="viewport" content="width=device-width,initial-scale=1" />
8+
<meta name="theme-color" content="#000000" />
9+
<meta name="description" content="Web site created using create-react-app" />
10+
<link rel="apple-touch-icon" href="/logo192.png" />
11+
<link rel="manifest" href="/manifest.json" />
12+
<title>REST API Reference 2</title>
13+
<link rel="stylesheet" href="css/base.css">
14+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
15+
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
16+
<script src="js/search.js"></script>
17+
<script defer src="js/searchIndex.js"></script>
18+
</head>
19+
20+
<body>
21+
</body>
22+
23+
</html>
24+
25+
<!DOCTYPE html>
26+
<html lang="en">
27+
<head>
28+
<meta charset="utf-8">
29+
<title>PHP REST Reference</title>
30+
31+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
32+
33+
<link rel="icon" href="images/favicon.png"/>
34+
<link rel="stylesheet" href="css/base.css">
35+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
36+
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
37+
<script src="js/search.js"></script>
38+
<script defer src="js/searchIndex.js"></script>
39+
40+
41+
<script>
42+
window.addEventListener('keyup', (event) => {
43+
if (event.key === '/') {
44+
event.stopImmediatePropagation();
45+
}
46+
});
47+
</script>
48+
</head>
49+
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="blue-grey" data-md-color-accent="deep-orange">
50+
<div class="popover popover--copied">Copied!</div>
51+
52+
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
53+
54+
<header class="md-header" data-md-component="header">
55+
<nav class="md-header__inner md-grid" aria-label="">
56+
57+
<a href="../php_api/"
58+
title="PHP API Reference"
59+
aria-label="PHP API Reference"
60+
class="md-header__button md-logo"
61+
>
62+
<img src="../../../php_api/php_api_reference/images/ibexa-dxp-logo.png">
63+
</a>
64+
<div class="md-header__switcher push">
65+
<div class="md-flex__ellipsis md-header__title switcher docs-switcher" data-md-component="title">
66+
<div class="switcher__selected-item" tab-index="-1">
67+
<div class="switcher__label" title="Developer Documentation">Developer Documentation</div>
68+
</div>
69+
<div class="switcher__list">
70+
<dl>
71+
<strong>
72+
<dd>
73+
<a href="/" title="Developer Documentation">Developer Documentation</a>
74+
</dd>
75+
</strong>
76+
<dd>
77+
<a href="/projects/userguide" title="User Documentation">User Documentation</a>
78+
</dd>
79+
<dd>
80+
<a href="/projects/connect" title="Connect Documentation">Connect Documentation</a>
81+
</dd>
82+
</dl>
83+
</div>
84+
</div>
85+
</div>
86+
<div class="md-header__switcher">
87+
<div class="md-flex__ellipsis md-header__title switcher version-switcher" data-md-component="title">
88+
<div class="rst-other-versions switcher__list"></div>
89+
</div>
90+
</div>
91+
<div class="md-search" data-md-component="search" role="dialog">
92+
<label class="md-search__overlay" for="__search"></label>
93+
<div class="md-search__inner phpdocumentor-search" role="search" data-search-form>
94+
<form class="md-search__form" name="search" >
95+
<span class="algolia-autocomplete algolia-autocomplete-left">
96+
<input
97+
type="search"
98+
id="search_input"
99+
class="md-search__input phpdocumentor-field phpdocumentor-search__field"
100+
name="query"
101+
aria-label="Search"
102+
placeholder="Search"
103+
autocapitalize="off"
104+
autocorrect="off"
105+
autocomplete="off"
106+
spellcheck="false"
107+
data-md-component="search-query"
108+
data-md-state="active"
109+
required
110+
>
111+
<label class="md-search__icon md-icon" for="__search">
112+
<img src="images/search.svg" alt="search">
113+
</label>
114+
<span
115+
class="ds-dropdown-menu ds-with-1 phpdocumentor-search-results phpdocumentor-search-results--hidden"
116+
role="listbox"
117+
data-search-results
118+
>
119+
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
120+
<div class="ds-dataset-1">
121+
<ul class="ds-suggestions phpdocumentor-search-results__entries">
122+
</ul>
123+
</div>
124+
</span>
125+
</span>
126+
</form>
127+
</div>
128+
</div>
129+
<div class="md-header__source">
130+
<a href="https://github.com/ibexa/documentation-developer/tree/master/docs/api/php_api" title="" class="source-github">
131+
<div class="md-source__icon md-icon">
132+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 512"><!--! Font Awesome Free 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"></path></svg>
133+
</div>
134+
View on GitHub
135+
</a>
136+
</div>
137+
</nav>
138+
</header>
139+
140+
<div class="md-container" data-md-component="container">
141+
<main class="md-main" data-md-component="main">
142+
<div class="md-main__inner md-grid">
143+
<div class="main_nav">
144+
<div class="main_nav_content">
145+
<div class="site-header" id="site-name">
146+
<a href=".">PHP REST Reference</a>
147+
<span class="pill">latest</span>
148+
</div>
149+
150+
<div id="redoc-container"></div>
151+
<noscript>You need to enable JavaScript to run this app.</noscript>
152+
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
153+
<script>
154+
Redoc.init("https://gist.githubusercontent.com/mnocon/0094456f313ea2943b3b852bf76d9a95/raw/3423f2d97bba77e5080179cb9e2994c98d8dec9f/api_no_logo.yaml",
155+
{
156+
expandResponses: "200,400",
157+
sidebar: {
158+
width: 20
159+
},
160+
rightPanel: {
161+
width: "10%"
162+
}
163+
}, document.getElementById("redoc-container"), (function (e) {
164+
// document.querySelector('[title]').setAttribute("style", "background-color: red")
165+
})
166+
)</script>
167+
168+
</div>
169+
</main>
170+
</div>
171+
</body>
172+
</html>
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
// Search module for phpDocumentor
2+
//
3+
// This module is a wrapper around fuse.js that will use a given index and attach itself to a
4+
// search form and to a search results pane identified by the following data attributes:
5+
//
6+
// 1. data-search-form
7+
// 2. data-search-results
8+
//
9+
// The data-search-form is expected to have a single input element of type 'search' that will trigger searching for
10+
// a series of results, were the data-search-results pane is expected to have a direct UL child that will be populated
11+
// with rendered results.
12+
//
13+
// The search has various stages, upon loading this stage the data-search-form receives the CSS class
14+
// 'phpdocumentor-search--enabled'; this indicates that JS is allowed and indices are being loaded. It is recommended
15+
// to hide the form by default and show it when it receives this class to achieve progressive enhancement for this
16+
// feature.
17+
//
18+
// After loading this module, it is expected to load a search index asynchronously, for example:
19+
//
20+
// <script defer src="js/searchIndex.js"></script>
21+
//
22+
// In this script the generated index should attach itself to the search module using the `appendIndex` function. By
23+
// doing it like this the page will continue loading, unhindered by the loading of the search.
24+
//
25+
// After the page has fully loaded, and all these deferred indexes loaded, the initialization of the search module will
26+
// be called and the form will receive the class 'phpdocumentor-search--active', indicating search is ready. At this
27+
// point, the input field will also have it's 'disabled' attribute removed.
28+
var Search = (function () {
29+
var fuse;
30+
var index = [];
31+
var options = {
32+
shouldSort: true,
33+
threshold: 0.6,
34+
location: 0,
35+
distance: 100,
36+
maxPatternLength: 32,
37+
minMatchCharLength: 1,
38+
keys: [
39+
"fqsen",
40+
"name",
41+
"summary",
42+
"url"
43+
]
44+
};
45+
46+
// Credit David Walsh (https://davidwalsh.name/javascript-debounce-function)
47+
// Returns a function, that, as long as it continues to be invoked, will not
48+
// be triggered. The function will be called after it stops being called for
49+
// N milliseconds. If `immediate` is passed, trigger the function on the
50+
// leading edge, instead of the trailing.
51+
function debounce(func, wait, immediate) {
52+
var timeout;
53+
54+
return function executedFunction() {
55+
var context = this;
56+
var args = arguments;
57+
58+
var later = function () {
59+
timeout = null;
60+
if (!immediate) func.apply(context, args);
61+
};
62+
63+
var callNow = immediate && !timeout;
64+
clearTimeout(timeout);
65+
timeout = setTimeout(later, wait);
66+
if (callNow) func.apply(context, args);
67+
};
68+
}
69+
70+
function close() {
71+
// Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/
72+
const scrollY = document.body.style.top;
73+
document.body.style.position = '';
74+
document.body.style.top = '';
75+
window.scrollTo(0, parseInt(scrollY || '0') * -1);
76+
// End scroll prevention
77+
78+
var form = document.querySelector('[data-search-form]');
79+
var searchResults = document.querySelector('[data-search-results]');
80+
81+
form.classList.toggle('phpdocumentor-search--has-results', false);
82+
searchResults.classList.add('phpdocumentor-search-results--hidden');
83+
var searchField = document.querySelector('[data-search-form] input[type="search"]');
84+
searchField.blur();
85+
}
86+
87+
function search(event) {
88+
// Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/
89+
document.body.style.position = 'fixed';
90+
document.body.style.top = `-${window.scrollY}px`;
91+
// End scroll prevention
92+
93+
// prevent enter's from autosubmitting
94+
event.stopPropagation();
95+
96+
var form = document.querySelector('[data-search-form]');
97+
var searchResults = document.querySelector('[data-search-results]');
98+
var searchResultEntries = document.querySelector('[data-search-results] .phpdocumentor-search-results__entries');
99+
100+
searchResultEntries.innerHTML = '';
101+
102+
if (!event.target.value) {
103+
close();
104+
return;
105+
}
106+
107+
form.classList.toggle('phpdocumentor-search--has-results', true);
108+
searchResults.classList.remove('phpdocumentor-search-results--hidden');
109+
var results = fuse.search(event.target.value, {limit: 25});
110+
111+
results.forEach(function (result) {
112+
var entry = document.createElement("li");
113+
entry.classList.add("phpdocumentor-search-results__entry");
114+
entry.innerHTML += '<h3><a href="' + document.baseURI + result.url + '">' + result.name + "</a></h3>\n";
115+
entry.innerHTML += '<small>' + result.fqsen + "</small>\n";
116+
entry.innerHTML += '<div class="phpdocumentor-summary">' + result.summary + '</div>';
117+
searchResultEntries.appendChild(entry)
118+
});
119+
}
120+
121+
function appendIndex(added) {
122+
index = index.concat(added);
123+
124+
// re-initialize search engine when appending an index after initialisation
125+
if (typeof fuse !== 'undefined') {
126+
fuse = new Fuse(index, options);
127+
}
128+
}
129+
130+
function init() {
131+
fuse = new Fuse(index, options);
132+
133+
var form = document.querySelector('[data-search-form]');
134+
var searchField = document.querySelector('[data-search-form] input[type="search"]');
135+
136+
var closeButton = document.querySelector('.phpdocumentor-search-results__close');
137+
closeButton.addEventListener('click', function() { close() }.bind(this));
138+
139+
var searchResults = document.querySelector('[data-search-results]');
140+
searchResults.addEventListener('click', function() { close() }.bind(this));
141+
142+
form.classList.add('phpdocumentor-search--active');
143+
144+
searchField.setAttribute('placeholder', 'Search (Press "/" to focus)');
145+
searchField.removeAttribute('disabled');
146+
searchField.addEventListener('keyup', debounce(search, 300));
147+
148+
window.addEventListener('keyup', function (event) {
149+
if (event.key === '/') {
150+
searchField.focus();
151+
}
152+
if (event.code === 'Escape') {
153+
close();
154+
}
155+
}.bind(this));
156+
}
157+
158+
return {
159+
appendIndex,
160+
init
161+
}
162+
})();
163+
164+
window.addEventListener('DOMContentLoaded', function () {
165+
var form = document.querySelector('[data-search-form]');
166+
167+
// When JS is supported; show search box. Must be before including the search for it to take effect immediately
168+
form.classList.add('phpdocumentor-search--enabled');
169+
});
170+
171+
window.addEventListener('load', function () {
172+
Search.init();
173+
});
5.22 KB
Loading
9.44 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

0 commit comments

Comments
 (0)