7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-05 00:15:30 +00:00

Update docs link

Instead of the hard-coded docs website, we use the redirect container to
keep the links valid and do forward-planning (e.g. 9.99)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19570
This commit is contained in:
Seth Hillbrand 2025-01-10 15:12:49 -08:00
parent 8e23fcab08
commit 7516e3a190
6 changed files with 11 additions and 11 deletions

View File

@ -150,13 +150,13 @@ void HTML_MESSAGE_BOX::OnHTMLLinkClicked( wxHtmlLinkEvent& event )
{
wxString href = event.GetLinkInfo().GetHref();
if( href.StartsWith( wxS( "https://docs.kicad.org/" ) ) )
if( href.StartsWith( wxS( "https://go.kicad.org/docs" ) ) )
{
href.Replace( wxS( "GetMajorMinorVersion" ), GetMajorMinorVersion() );
wxURI uri( href );
wxLaunchDefaultBrowser( uri.BuildURI() );
}
wxURI uri( href );
wxLaunchDefaultBrowser( uri.BuildURI() );
}

View File

@ -43,9 +43,9 @@
#include <eda_doc.h>
#include <wx/msgdlg.h>
#define URL_GET_INVOLVED wxS( "https://kicad.org/contribute/" )
#define URL_GET_INVOLVED wxS( "https://go.kicad.org/contribute/" )
#define URL_DONATE wxS( "https://go.kicad.org/app-donate" )
#define URL_DOCUMENTATION wxS( "https://docs.kicad.org/" )
#define URL_DOCUMENTATION wxS( "https://go.kicad.org/docs/" )
/// URL to launch a new issue with pre-populated description
@ -210,7 +210,7 @@ int COMMON_CONTROL::ShowHelp( const TOOL_EVENT& aEvent )
wxString helpFile;
wxString msg;
// the URL of help files is "https://docs.kicad.org/<version>/<language>/<name>/"
// the URL of help files is "https://go.kicad.org/docs/<version>/<language>/<name>/"
const wxString baseUrl = URL_DOCUMENTATION + GetMajorMinorVersion() + wxT( "/" )
+ Pgm().GetLocale()->GetName().BeforeLast( '_' ) + wxT( "/" );

View File

@ -1,4 +1,4 @@
// Do not edit this file, it is autogenerated by CMake from the .md file
_HKI( "### Documentation\n"
"\n"
"For the full documentation see [https://docs.kicad.org](https://docs.kicad.org/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules)." );
"For the full documentation see [https://docs.kicad.org](https://go.kicad.org/docs/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules)." );

View File

@ -1,3 +1,3 @@
### Documentation
For the full documentation see [https://docs.kicad.org](https://docs.kicad.org/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules).
For the full documentation see [https://docs.kicad.org](https://go.kicad.org/docs/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules).

View File

@ -1,7 +1,7 @@
// Do not edit this file, it is autogenerated by CMake from the .md file
_HKI( "### Properties\n"
"\n"
"Many properties of objects are available for testing in custom rule expressions. See the full documentation at [https://docs.kicad.org](https://docs.kicad.org/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules) for the complete list.\n"
"Many properties of objects are available for testing in custom rule expressions. See the full documentation at [https://docs.kicad.org](https://go.kicad.org/docs/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules) for the complete list.\n"
"<br><br><br>\n"
"\n"
"" );

View File

@ -1,5 +1,5 @@
### Properties
Many properties of objects are available for testing in custom rule expressions. See the full documentation at [https://docs.kicad.org](https://docs.kicad.org/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules) for the complete list.
Many properties of objects are available for testing in custom rule expressions. See the full documentation at [https://docs.kicad.org](https://go.kicad.org/docs/GetMajorMinorVersion/en/pcbnew/pcbnew.html#custom_design_rules) for the complete list.
<br><br><br>