function demoTopic = getDemoTopic(hp)
    demoTopic = '';
    fullTopic = matlab.internal.language.introspective.safeWhich(hp.fullTopic);
    [path, name] = fileparts(fullTopic);
    if isfile(fullfile(path, 'html', [name '.html']))
        minimalTopic = matlab.internal.language.introspective.minimizePath(fullTopic, false);
        [path, name] = fileparts(minimalTopic);
        demoTopic = replace(fullfile(path, name), '\', '/');
    end
end

%   Copyright 2007-2020 The MathWorks, Inc.
