Skip to content

Commit df9f013

Browse files
authored
Merge pull request #89 from samchon/feature/sitemap
Add sitemap builder
2 parents de6c07f + 73a755c commit df9f013

File tree

3 files changed

+40
-18
lines changed

3 files changed

+40
-18
lines changed

src/components/Invoke.ts

+27-16
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
/**
2-
* Message structure for RFC (Remote Function Call).
2+
* Message structure for RPC (Remote Procedure Call).
33
*
44
* @author Jeongho Nam - https://github.com/samchon
55
*/
66
export type Invoke = Invoke.IFunction | Invoke.IReturn;
77

88
export namespace Invoke {
99
/**
10-
* Message for Requesting RFC.
10+
* Message for Requesting RPC.
1111
*/
12-
export interface IFunction extends IBase {
12+
export interface IFunction {
13+
/**
14+
* Unique identifier.
15+
*/
16+
uid: number;
17+
1318
/**
1419
* Target function (sometimes calsuled in objects) to call.
1520
*/
@@ -20,34 +25,40 @@ export namespace Invoke {
2025
*/
2126
parameters: IParameter[];
2227
}
23-
24-
export interface IParameter {
25-
type: string;
26-
value: any;
27-
}
28-
2928
/**
30-
* Message for Returning RFC.
29+
* Parameter for the function call.
3130
*/
32-
export interface IReturn extends IBase {
31+
export interface IParameter {
3332
/**
34-
* `true` -> return, `false` -> exception.
33+
* Type of the {@link value}.
34+
*
35+
* Actually, it stores result of the `typeof` statement.
3536
*/
36-
success: boolean;
37+
type: string;
3738

3839
/**
39-
* Returned value or thrown exception.
40+
* Value of the parameter.
4041
*/
4142
value: any;
4243
}
4344

4445
/**
45-
* @hiden
46+
* Message for Returning RPC.
4647
*/
47-
interface IBase {
48+
export interface IReturn {
4849
/**
4950
* Unique identifier.
5051
*/
5152
uid: number;
53+
54+
/**
55+
* `true` -> return, `false` -> exception.
56+
*/
57+
success: boolean;
58+
59+
/**
60+
* Returned value or thrown exception.
61+
*/
62+
value: any;
5263
}
5364
}

website/build/deploy.js

+11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
const cp = require("child_process");
2+
const fs = require("fs");
23
const deploy = require("gh-pages");
34

45
cp.execSync("npm run build", { stdio: "inherit" });
56

7+
for (const file of fs.readdirSync(`${__dirname}/../public`))
8+
if (
9+
file === "robots.txt" ||
10+
(file.startsWith("sitemap") && file.endsWith(".xml"))
11+
)
12+
fs.copyFileSync(
13+
`${__dirname}/../public/${file}`,
14+
`${__dirname}/../out/${file}`,
15+
);
16+
617
deploy.publish(
718
"out",
819
{

website/pages/docs/features/components.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Header value delivered after the connection.
190190
Server can get the `Header` value through acceptor's `header` property.
191191

192192
- [`WebSocketAcceptor.header`](/api/classes/WebSocketAcceptor-1.html#header-1)
193-
- [`WorkerServer.getHeader()`](http://127.0.0.1:3000/api/classes/WorkerServer-1.html#getHeader)
194-
- [`SharedWorkerSever.header`](http://127.0.0.1:3000/api/classes/SharedWorkerAcceptor-1.html#header-1)
193+
- [`SharedWorkerAcceptor.header`](/api/classes/SharedWorkerAcceptor-1.html#header-1)
194+
- [`WorkerServer.getHeader()`](/api/classes/WorkerServer-1.html#getHeader)
195195

196196

197197

0 commit comments

Comments
 (0)