Skip to content

Commit 35a919d

Browse files
desaiwangBHFraser Greenroyd
authored andcommitted
Created ExcelToolkitWiki.cs
returns the wiki documentation link
1 parent 1dd919b commit 35a919d

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* This file is part of the Buildings and Habitats object Model (BHoM)
3+
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
4+
*
5+
* Each contributor holds copyright over their respective contributions.
6+
* The project versioning (Git) records all such contribution source information.
7+
*
8+
*
9+
* The BHoM is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3.0 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* The BHoM is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public License
20+
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
21+
*/
22+
23+
using BH.Engine.Reflection;
24+
using BH.oM.Adapters.Excel;
25+
using BH.oM.Base.Attributes;
26+
using System;
27+
using System.ComponentModel;
28+
using System.Text.RegularExpressions;
29+
30+
namespace BH.Engine.Excel
31+
{
32+
public static partial class Query
33+
{
34+
/***************************************************/
35+
/**** Public methods ****/
36+
/***************************************************/
37+
38+
[Description("Generates the Excel Toolkit wiki URL for a provided page.")]
39+
[Input("page", "An optional page in the wiki to link to. If no page is provided, the root URL is returned.")]
40+
[Output("url", "Fully qualified URL for the Revit Toolkit wiki.")]
41+
public static string ExcelToolkitWiki(string page = null)
42+
{
43+
string url = "https://github.com/BHoM/Excel_Toolkit/wiki";
44+
45+
if (!string.IsNullOrEmpty(page))
46+
{
47+
url += $"/{page}";
48+
}
49+
50+
return url;
51+
}
52+
53+
/***************************************************/
54+
}
55+
}
56+
57+

0 commit comments

Comments
 (0)